The fractions feature type (kFractionsType) controls the selection and generation of fractions. For a font that supports the fractions feature type, you can select between two different types of automatic fraction generation—vertical and diagonal. Figure B-8 shows a fraction, drawn first without automatic fraction formation, then with the diagonal fractions selector, and finally with the vertical fractions selector.
The feature selectors for the fractions feature type is shown in Table B-10. This feature is a contextual, exclusive feature type.
Feature selector | Description |
|---|---|
Specifies that fractions should not be formed automatically. | |
Specifies replacement of slash-separated numeric sequences with pre-drawn fraction glyphs, if present in the font. | |
Specifies replacement of slash-separated numeric sequences with pre-drawn fraction glyphs, but fractions will be synthesized using superiors and inferiors (or special-purpose number and denominator forms) if present in the font. |
Note: To use the automatic fraction-generation capability, make sure that the slash separating the numerator and denominator is the fraction slash (U+2044), not the normal slash character. Automatic fraction generation does not occur unless the slash is a fraction slash.
Last updated: 2007-07-10