Enumeration
OpenTypeFeature
Supported OpenType feature options.
In UXP, compare with equals() — the == and === operators do not work on DOM objects: myPath.pathType.equals(PathType.CLOSED_PATH), not myPath.pathType == PathType.CLOSED_PATH.
Values
| Name | Type | Access | Description |
|---|---|---|---|
| Number = 1664250691 | readonly | Provides authentic small caps rather than scaled-down versions of the font's regular caps. | |
| Number = 1330930497 | readonly | Activates contextual ligatures and connecting alternates. | |
| Number = 1330931268 | readonly | Applies the default figure style of the current font to figure glyphs. | |
| Number = 1884247108 | readonly | 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. | |
| Number = 1330930764 | readonly | Allows the use of optional discretionary ligatures. | |
| Number = 1330931282 | readonly | 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. | |
| Number = 1330932309 | readonly | Justification alternate | |
| Number = 1701727351 | readonly | Low. | |
| Number = 1884247118 | readonly | 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. | |
| Number = 1330933586 | readonly | Superscripts the alpha characters in ordinal numbers. | |
| Number = 1330933590 | readonly | Overlap swash | |
| Number = 1330932816 | readonly | Gives full-height figures varying widths. | |
| Number = 1330933587 | readonly | Gives varying-height figures varying widths. | |
| Number = 1330934610 | readonly | Stretched alternate | |
| Number = 1330934612 | readonly | Stylistic alternate | |
| Number = 1884247106 | readonly | Sizes lowered glyphs correctly relative to the surrounding characters. | |
| Number = 1884247123 | readonly | Sizes raised glyphs correctly relative to the surrounding characters. | |
| Number = 1330934615 | readonly | Provides regular and contextual swashes, which may include alternate caps and end-of-word alternatives. | |
| Number = 1330931284 | readonly | Gives full-height figures fixed, equal width. | |
| Number = 1330933588 | readonly | Gives varying-height figures fixed, equal widths. | |
| Number = 1330934857 | readonly | Activates alternative characters used for uppercase titles. |
Parameter of 1
Method parameters that accept an OpenTypeFeature value.