FontFeature

FontFeature enumeration

Features provide information about how glyphs are used in a font to render a script. https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags

public enum FontFeature

Values

NameValueDescription
GlyphCompositionDecomposition1667460464To minimize the number of glyph alternates, it is sometimes desirable to decompose the default glyph for a character into two or more glyphs. Additionally, it may be preferable to compose default glyphs for two or more characters into a single glyph for better glyph processing. This feature permits such composition/decomposition. https://docs.microsoft.com/en-us/typography/opentype/spec/features_ae#ccmp Equivalent OpenType tag: ‘ccmp’
StandardLigatures1818847073Replaces a sequence of glyphs with a single glyph which is preferred for typographic purposes. This feature covers the ligatures which the designer/manufacturer judges should be used in normal conditions. Equivalent OpenType tag: ’liga’ https://docs.microsoft.com/en-us/typography/opentype/spec/features_ko#liga
RequiredLigatures1919707495Replaces a sequence of glyphs with a single glyph which is preferred for typographic purposes. This feature covers those ligatures, which the script determines as required to be used in normal conditions. This feature is important for some scripts to ensure correct glyph formation. https://docs.microsoft.com/en-us/typography/opentype/spec/features_pt#rlig Equivalent OpenType tag: ‘rlig’
ContextualLigatures1668049255Replaces a sequence of glyphs with a single glyph which is preferred for typographic purposes. Unlike other ligature features, ‘clig’ specifies the context in which the ligature is recommended. This capability is important in some script designs and for swash ligatures. https://docs.microsoft.com/en-us/typography/opentype/spec/features_ae#clig Equivalent OpenType tag: ‘clig’
DiscretionaryLigatures1684826471Replaces a sequence of glyphs with a single glyph which is preferred for typographic purposes. This feature covers those ligatures which may be used for special effect, at the user’s preference. https://docs.microsoft.com/en-us/typography/opentype/spec/features_ae#dlig Equivalent OpenType tag: ‘dlig’
HistoricalLigatures1751935335Some ligatures were in common use in the past, but appear anachronistic today. Some fonts include the historical forms as alternates, so they can be used for a “period” effect. This feature replaces the default (current) forms with the historical alternates. https://docs.microsoft.com/en-us/typography/opentype/spec/features_fj#hlig Equivalent OpenType tag: ‘hlig’
ProportionalFigures1886287213Replaces figure glyphs set on uniform (tabular) widths with corresponding glyphs set on glyph-specific (proportional) widths. https://docs.microsoft.com/en-us/typography/opentype/spec/features_pt#tag-pnum Equivalent OpenType tag: ‘pnum’
TabularFigures1953396077Replaces figure glyphs set on proportional widths with corresponding glyphs set on uniform (tabular) widths. Tabular widths will generally be the default, but this cannot be safely assumed. Of course this feature would not be present in monospaced designs. https://docs.microsoft.com/en-us/typography/opentype/spec/features_pt#tag-tnum Equivalent OpenType tag: ’tnum’
LiningFigures1819178349This feature changes selected non-lining figures to lining figures. https://docs.microsoft.com/en-us/typography/opentype/spec/features_ko#lnum Equivalent OpenType tag: ’lnum'
OldstyleFigures1869509997This feature changes selected figures from the default or lining style to oldstyle form. https://docs.microsoft.com/en-us/typography/opentype/spec/features_ko#onum Equivalent OpenType tag: ‘onum’
VerticalAlternates1986359924Transforms default glyphs into glyphs that are appropriate for upright presentation in vertical writing mode. https://docs.microsoft.com/en-us/typography/opentype/spec/features_uz#tag-vert Equivalent OpenType tag: ‘vert’
VerticalAlternatesAndRotation1987212338Replaces some fixed-width (half-, third- or quarter-width) or proportional-width glyphs (mostly Latin or katakana) with forms suitable for vertical writing (that is, rotated 90 degrees clockwise). https://docs.microsoft.com/en-us/typography/opentype/spec/features_uz#tag-vrt2 Equivalent OpenType tag: ‘vrt2’
StylisticSet011936928817Stylistic Set 1 In addition to, or instead of, stylistic alternatives of individual glyphs (see ‘salt’ feature), some fonts may contain sets of stylistic variant glyphs corresponding to portions of the character set, e.g. multiple variants for lowercase letters in a Latin font. https://docs.microsoft.com/en-us/typography/opentype/spec/features_pt#tag-ss01---ss20 Equivalent OpenType tag: ‘ss01’
StylisticSet021936928818Stylistic Set 2 Equivalent OpenType tag: ‘ss02’
StylisticSet031936928819Stylistic Set 3 Equivalent OpenType tag: ‘ss03’
StylisticSet041936928820Stylistic Set 4 Equivalent OpenType tag: ‘ss04’
StylisticSet051936928821Stylistic Set 5 Equivalent OpenType tag: ‘ss05’
StylisticSet061936928822Stylistic Set 6 Equivalent OpenType tag: ‘ss06’
StylisticSet071936928823Stylistic Set 7 Equivalent OpenType tag: ‘ss07’
StylisticSet081936928824Stylistic Set 8 Equivalent OpenType tag: ‘ss08’
StylisticSet091936928825Stylistic Set 9 Equivalent OpenType tag: ‘ss09’
StylisticSet101936929072Stylistic Set 10 Equivalent OpenType tag: ‘ss10’
StylisticSet111936929073Stylistic Set 11 Equivalent OpenType tag: ‘ss11’
StylisticSet121936929074Stylistic Set 12 Equivalent OpenType tag: ‘ss12’
StylisticSet131936929075Stylistic Set 13 Equivalent OpenType tag: ‘ss13’
StylisticSet141936929076Stylistic Set 14 Equivalent OpenType tag: ‘ss14’
StylisticSet151936929077Stylistic Set 15 Equivalent OpenType tag: ‘ss15’
StylisticSet161936929078Stylistic Set 16 Equivalent OpenType tag: ‘ss16’
StylisticSet171936929079Stylistic Set 17 Equivalent OpenType tag: ‘ss17’
StylisticSet181936929080Stylistic Set 18 Equivalent OpenType tag: ‘ss18’
StylisticSet191936929081Stylistic Set 19 Equivalent OpenType tag: ‘ss19’
StylisticSet201936929328Stylistic Set 20 Equivalent OpenType tag: ‘ss20’
Kerning1801810542Adjusts amount of space between glyphs, generally to provide optically consistent spacing between glyphs. Although a well-designed typeface has consistent inter-glyph spacing overall, some glyph combinations require adjustment for improved legibility. Besides standard adjustment in the horizontal direction, this feature can supply size-dependent kerning data via device tables, “cross-stream” kerning in the Y text direction, and adjustment of glyph placement independent of the advance adjustment. Note that this feature may apply to runs of more than two glyphs, and would not be used in monospaced fonts. Also note that this feature does not apply to text set vertically. https://docs.microsoft.com/en-us/typography/opentype/spec/features_ko#kern Equivalent OpenType tag: ‘kern’

See Also