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

< Previous PageNext Page > Hide TOC

Mathematical Extras Feature Type

The mathematical extras feature type (kMathematicalExtrasType) represents a collection of features that are used to set figures and mathematics. For example, this feature can change asterisks to multiplication symbols.

Figure B-13 shows an example of drawing mathematical text without and with the mathematical extras features selectors. The top line is drawn without mathematical extras features. The bottom line is drawn with two mathematical extras features enabled: hyphen to minus sign and asterisk to multiplication sign.


Figure B-13  Drawing text without and with mathematical extras

Drawing text without and with mathematical extras

Table B-16 shows the selectors you can use for the mathematical extras feature type. This is a noncontextual, nonexclusive feature type.

Table B-16  Selectors for the mathematical extras feature

Feature selector

Description

kHyphenToMinusOnSelector

Allows the automatic replacement of the sequence space-hyphen-space (or the hyphen in the sequence numeral-hyphen-numeral) with a minus sign glyph (–). The default setting is to allow hyphen to minus replacement. See Figure B-13.

kHyphenToMinusOffSelector

Prevents the automatic replacement of the sequence space-hyphen-space (or the hyphen in the sequence numeral-hyphen-numeral) with a minus sign glyph (–).

kAsteriskToMultiplyOnSelector

Allows the automatic replacement of the sequence space-asterisk-space (or the asterisk in the sequence numeral-asterisk-numeral) with a multiplication sign glyph (X). See Figure B-13

kAsteriskToMultiplyOffSelector

Prevents the automatic replacement of the sequence space-asterisk-space (or the asterisk in the sequence numeral-asterisk-numeral) with a multiplication sign glyph (X).

kSlashedToDivideOnSelector

Allows the automatic replacement of the sequence space-slash-space (or the slash in the sequence numeral-slash-numeral) with a division sign glyph ().

kSlashedToDivideOffSelector

Prevents the automatic replacement of the sequence space-slash-space (or the slash in the sequence numeral-slash-numeral) with a division sign glyph ().

kInequalityLigaturesOnSelector

Allows the automatic replacement of sequences such as “>=” and “<=” with the equivalent ligatures “≥” and “≤”.

kInequalityLigaturesOffSelector

Prevents the automatic replacement of sequences such as “>=” and “<=” with the equivalent ligatures “≥” and “≤”.

kExponentsOnSelector

Allows the automatic replacement of the sequence exponentiation glyph—numeral with the superior forms of the numeral.

kExponentsOffSelector

Prevents the automatic replacement of the sequence exponentiation glyph—numeral with the superior forms of the numeral.

Note: By convention, specifying the kHyphenToMinusOnSelector in the mathematical extras feature type overrides specifying the kHyphenToEnDashOnSelector in the typographic extras feature type.



< 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