Back to API Reference
Class

FontFeatureModifier

Inherits:BaseModifier

Turns OpenType features on or off over a text range.

Remarks

Parameter: a comma-separated list of settings, each a four-character OpenType tag with an optional value — kern 0 (no kerning), -liga (no standard ligatures), +dlig, tnum (tabular figures), ss01 2. A bare tag means 1, a - prefix means 0, and the value may follow a space, colon or equals sign. Features are merged, not replaced: overlapping ranges and other feature-writing modifiers (small caps, superscript) keep their settings, and the innermost value wins a shared tag. Tags the font does not carry are ignored by the shaper.
protected override void OnApply()