From a5e5b327fd3eb2987717884163222c113bef2493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 13 Jul 2024 14:24:57 +0200 Subject: [PATCH] Text: add new OpenType 1.9.1 features, doc++ --- src/Magnum/Text/Feature.cpp | 2 ++ src/Magnum/Text/Feature.h | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Text/Feature.cpp b/src/Magnum/Text/Feature.cpp index 962bbbab0..fd9a6908a 100644 --- a/src/Magnum/Text/Feature.cpp +++ b/src/Magnum/Text/Feature.cpp @@ -45,6 +45,7 @@ Debug& operator<<(Debug& debug, const Feature value) { _c(AboveBaseSubstitutions) _c(AlternativeFractions) _c(Akhand) + _c(KerningForAlternateProportionalWidths) _c(BelowBaseForms) _c(BelowBaseMarkPositioning) _c(BelowBaseSubstitutions) @@ -270,6 +271,7 @@ Debug& operator<<(Debug& debug, const Feature value) { _c(Unicase) _c(AlternateVerticalMetrics) _c(VattuVariants) + _c(KerningForAlternateProportionalVerticalMetrics) _c(VerticalContextualHalfWidthSpacing) _c(VerticalWriting) _c(AlternateVerticalHalfMetrics) diff --git a/src/Magnum/Text/Feature.h b/src/Magnum/Text/Feature.h index 9d47a2c80..84a96049b 100644 --- a/src/Magnum/Text/Feature.h +++ b/src/Magnum/Text/Feature.h @@ -160,6 +160,13 @@ enum class Feature: UnsignedInt { */ Akhand = Utility::Endianness::fourCC('a', 'k', 'h', 'n'), + /** + * `apkn`, [Kerning for Alternate Proportional Widths](https://learn.microsoft.com/typography/opentype/spec/features_ae#apkn). + * Intended for East-Asian scripts. + * @m_keywords{apkn} + */ + KerningForAlternateProportionalWidths = Utility::Endianness::fourCC('a', 'p', 'k', 'n'), + /** * `blwf`, [Below-base Forms](https://learn.microsoft.com/typography/opentype/spec/features_ae#blwf). * Intended for South-Asian scripts. @@ -1035,7 +1042,7 @@ enum class Feature: UnsignedInt { TerminalForms3 = Utility::Endianness::fourCC('f', 'i', 'n', '3'), /** - * `flac`, [Flattened accent forms](https://learn.microsoft.com/typography/opentype/spec/features_fj#flac). + * `flac`, [Flattened Accent Forms](https://learn.microsoft.com/typography/opentype/spec/features_fj#flac). * Intended for digits and math. * @m_keywords{flac} */ @@ -1747,6 +1754,13 @@ enum class Feature: UnsignedInt { */ VattuVariants = Utility::Endianness::fourCC('v', 'a', 't', 'u'), + /** + * `vapk`, [Kerning for Alternate Proportional Vertical Metrics](https://learn.microsoft.com/typography/opentype/spec/features_uz#vapk). + * Intended for East-Asian scripts. + * @m_keywords{vapk} + */ + KerningForAlternateProportionalVerticalMetrics = Utility::Endianness::fourCC('v', 'a', 'p', 'k'), + /** * `vchw`, [Vertical Contextual Half-width Spacing](https://learn.microsoft.com/typography/opentype/spec/features_uz#vchw). * Intended for East-Asian scripts.