OpenTypeFeature

Supported OpenType feature options.

Values

Name

Description

Value

OpenTypeFeature.ALL_SMALL_CAPS_FEATURE

Provides authentic small caps rather than scaled-down versions of the font's regular caps.

1664250691

OpenTypeFeature.CONTEXTUAL_ALTERNATES_FEATURE

Activates contextual ligatures and connecting alternates.

1330930497

OpenTypeFeature.DEFAULT_FIGURE_STYLE_FEATURE

Applies the default figure style of the current font to figure glyphs.

1330931268

OpenTypeFeature.DENOMINATOR_FEATURE

In a series of two numbers separated by a slash that form a non-standard fraction, such as 4/13, reformats the second number as a denominator.

1884247108

OpenTypeFeature.DISCRETIONARY_LIGATURES_FEATURE

Allows the use of optional discretionary ligatures.

1330930764

OpenTypeFeature.FRACTIONS_FEATURE

Reformats numbers separated by a slash, such as 1/2, as fractions. Note: In some fonts, the fractions feature reformats only standard fractions. For information on reformatting non-standard fractions such as 4/13, see denominator feature and numerator feature.

1330931282

OpenTypeFeature.JUSTIFICATION_ALTERNATE

Justification alternate

1330932309

OpenTypeFeature.LOW

Low.

1701727351

OpenTypeFeature.NUMERATOR_FEATURE

In a series of two numbers separated by a slash that form a non-standard fraction, such as 4/13, reformats the first number as a numerator.

1884247118

OpenTypeFeature.ORDINAL_FEATURE

Superscripts the alpha characters in ordinal numbers.

1330933586

OpenTypeFeature.OVERLAP_SWASH

Overlap swash

1330933590

OpenTypeFeature.PROPORTIONAL_LINING_FEATURE

Gives full-height figures varying widths.

1330932816

OpenTypeFeature.PROPORTIONAL_OLDSTYLE_FEATURE

Gives varying-height figures varying widths.

1330933587

OpenTypeFeature.STRETCHED_ALTERNATE

Stretched alternate

1330934610

OpenTypeFeature.STYLISTIC_ALTERNATE

Stylistic alternate

1330934612

OpenTypeFeature.SUBSCRIPT_FEATURE

Sizes lowered glyphs correctly relative to the surrounding characters.

1884247106

OpenTypeFeature.SUPERSCRIPT_FEATURE

Sizes raised glyphs correctly relative to the surrounding characters.

1884247123

OpenTypeFeature.SWASH_FEATURE

Provides regular and contextual swashes, which may include alternate caps and end-of-word alternatives.

1330934615

OpenTypeFeature.TABULAR_LINING_FEATURE

Gives full-height figures fixed, equal width.

1330931284

OpenTypeFeature.TABULAR_OLDSTYLE_FEATURE

Gives varying-height figures fixed, equal widths.

1330933588

OpenTypeFeature.TITLING_FEATURE

Activates alternative characters used for uppercase titles.

1330934857