The format for specifying feature strings follows. All valid CSS
font-feature-settings values other than 'normal' and the global values are
also accepted, though not documented below. CSS string escapes are not
supported.
The range indices refer to the positions between Unicode characters. The
position before the first character is always 0.
The format is Python-esque. Here is how it all works:
SyntaxValueStartEndSetting value:kern10∞Turn feature on+kern10∞Turn feature on-kern00∞Turn feature offkern=000∞Turn feature offkern=110∞Turn feature onaalt=220∞Choose 2nd alternateSetting index:kern[]10∞Turn feature onkern[:]10∞Turn feature onkern[5:]15∞Turn feature on, partialkern[:5]105Turn feature on, partialkern[3:5]135Turn feature on, rangekern[3]133+1Turn feature on, single charMixing it all:aalt[3:5]=2235Turn 2nd alternate on for range
Parses a string into a HarfBuzz.feature_t.
The format for specifying feature strings follows. All valid CSS font-feature-settings values other than 'normal' and the global values are also accepted, though not documented below. CSS string escapes are not supported.
The range indices refer to the positions between Unicode characters. The position before the first character is always 0.
The format is Python-esque. Here is how it all works: