Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Fractions Feature Type

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.


Figure B-8  Fractions drawn with three different fractions feature selectors

Fractions drawn with three different fractions feature selectors

The feature selectors for the fractions feature type is shown in Table B-10. This feature is a contextual, exclusive feature type.

Table B-10  Selectors for the fractions feature

Feature selector

Description

kNoFractionsSelector

Specifies that fractions should not be formed automatically.

kVerticalFractionsSelector

Specifies replacement of slash-separated numeric sequences with pre-drawn fraction glyphs, if present in the font.

kDiagonalFractionsSelector

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.



< Previous PageNext Page > Hide TOC


Last updated: 2007-07-10




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice