Browse Source

Text: add new OpenType 1.9.1 features, doc++

pull/168/merge
Vladimír Vondruš 2 years ago
parent
commit
a5e5b327fd
  1. 2
      src/Magnum/Text/Feature.cpp
  2. 16
      src/Magnum/Text/Feature.h

2
src/Magnum/Text/Feature.cpp

@ -45,6 +45,7 @@ Debug& operator<<(Debug& debug, const Feature value) {
_c(AboveBaseSubstitutions) _c(AboveBaseSubstitutions)
_c(AlternativeFractions) _c(AlternativeFractions)
_c(Akhand) _c(Akhand)
_c(KerningForAlternateProportionalWidths)
_c(BelowBaseForms) _c(BelowBaseForms)
_c(BelowBaseMarkPositioning) _c(BelowBaseMarkPositioning)
_c(BelowBaseSubstitutions) _c(BelowBaseSubstitutions)
@ -270,6 +271,7 @@ Debug& operator<<(Debug& debug, const Feature value) {
_c(Unicase) _c(Unicase)
_c(AlternateVerticalMetrics) _c(AlternateVerticalMetrics)
_c(VattuVariants) _c(VattuVariants)
_c(KerningForAlternateProportionalVerticalMetrics)
_c(VerticalContextualHalfWidthSpacing) _c(VerticalContextualHalfWidthSpacing)
_c(VerticalWriting) _c(VerticalWriting)
_c(AlternateVerticalHalfMetrics) _c(AlternateVerticalHalfMetrics)

16
src/Magnum/Text/Feature.h

@ -160,6 +160,13 @@ enum class Feature: UnsignedInt {
*/ */
Akhand = Utility::Endianness::fourCC('a', 'k', 'h', 'n'), 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). * `blwf`, [Below-base Forms](https://learn.microsoft.com/typography/opentype/spec/features_ae#blwf).
* Intended for South-Asian scripts. * Intended for South-Asian scripts.
@ -1035,7 +1042,7 @@ enum class Feature: UnsignedInt {
TerminalForms3 = Utility::Endianness::fourCC('f', 'i', 'n', '3'), 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. * Intended for digits and math.
* @m_keywords{flac} * @m_keywords{flac}
*/ */
@ -1747,6 +1754,13 @@ enum class Feature: UnsignedInt {
*/ */
VattuVariants = Utility::Endianness::fourCC('v', 'a', 't', 'u'), 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). * `vchw`, [Vertical Contextual Half-width Spacing](https://learn.microsoft.com/typography/opentype/spec/features_uz#vchw).
* Intended for East-Asian scripts. * Intended for East-Asian scripts.

Loading…
Cancel
Save