Typographical Extras Feature Type
The typographical extras features type (kTypographicExtrasType) represents a collection of effects that are associated with sophisticated typography, such as substitution of en dashes for hyphens. Fonts that support the typographic extras feature type allow you to specify certain typographic conventions, using such selectors as those shown in Table B-26. This feature is noncontextual and nonexclusive.
Table B-26 Selectors for the typographical extras feature Feature selector | Description |
kHyphensToEmDashOnSelector
| Allows the automatic replacement of two adjacent hyphens with an em dash. This is the default setting. |
kHyphensToEmDashOffSelector
| Prevents the automatic replacement of two adjacent hyphens with an em dash. |
kHyphenToEnDashOnSelector
| Allows the automatic replacement of the sequence space-hyphen-space (or the hyphen in the sequence numeral-hyphen-numeral) with an en dash. |
kHyphenToEnDashOffSelector
| Prevents the automatic replacement of the sequence space-hyphen-space (or the hyphen in the sequence numeral-hyphen-numeral) with an en dash. |
kSlashedZeroOnSelector
| Allows the forced use of the zero glyph with a slash, regardless of whether the font specifies a slashed zero as the default. |
kSlashedZeroOffSelector
| Prevents the forced use of the zero glyph with a slash, regardless of whether the font specifies a slashed zero as the default. |
kFormInterrogbangOnSelector
| Allows the automatic replacement of the sequence “?!” or “!?” with the font’s interrobang glyph. |
kFormInterrogbangOffSelector
| Prevents the automatic replacement of the sequence “?!” or “!?” with the font’s interrobang glyph. |
kSmartQuotesOnSelector
| Allows the automatic contextual replacement of straight quotation marks with curly ones. |
kSmartQuotesOffSelector
| Prevents the automatic contextual replacement of straight quotation marks with curly ones. |
kPeriodsToEllipsisOnSelector
| Allows the automatic replacement of three adjacent periods with an ellipsis. |
kPeriodsToEllipsisOffSelector
| Prevents the automatic replacement of three adjacent periods with an ellipsis. |