Struct FontFeatureSetting
sealed struct FontFeatureSetting
OpenType features are typographic and language support features built into fonts.
They allow fine-grained control over text rendering. Common features include:
-
Ligatures:
- ‘liga’ - Standard Ligatures
- ‘dlig’ - Discretionary Ligatures
- ‘hlig’ - Historical Ligatures
-
Number Styles:
- ‘lnum’ - Lining Numerals
- ‘onum’ - Oldstyle Numerals
- ‘pnum’ - Proportional Numerals
- ‘tnum’ - Tabular Numerals
-
Case Features:
- ‘smcp’ - Small Capitals
- ‘c2sc’ - Small Capitals From Capitals
- ‘pcap’ - Petite Capitals
-
Others:
- ‘kern’ - Kerning
- ‘ss01’ through ‘ss20’ - Stylistic Sets
- Check OpenType Feature Registry for complete feature list.
- Use FontDrop to test which OpenType features are supported by a particular font.

