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

< Previous PageNext Page > Hide TOC

Smart Swashes Feature Type

The smart swashes feature type (kSmartSwashType) controls contextual swash substitution. (A swash is a variation, often ornamental, of an existing glyph.) The feature determines whether swash variants of glyphs are to be substituted in specific places in the text, such as at the beginnings or ends of words or lines.

Figure B-19 shows the same phrase written four times, each using a different feature selector for the smart swash feature. The first line is drawn without swash variants. The second line is drawn with only initial swashes enabled. The third line is drawn with only final swashes enabled. The last line is drawn with both initial and final swashes enabled.


Figure B-19  Text drawn with different swash feature selectors

Text drawn with different swash feature selectors

If the font supports the smart swashes feature type, you can select features that allow you to specify sets of swashes, such as shown in Table B-22. This feature is contextual and nonexclusive.

Table B-22  Selectors for the smart swash feature

Feature selector

Description

kWordInitialSwashesOnSelector

Allows the substitution of swash variants that appear at the start of a word (or a line). This is the default setting.

kWordInitialSwashesOffSelector

Prevents the substitution of swash variants that appear at the start of a word (or a line).

kWordFinalSwashesOnSelector

Allows the substitution of swash variants that appear at the end of a word (or a line).

kWordFinalSwashesOffSelector

Prevents the substitution of swash variants that appear at the end of a word (or a line).

kLineInitialSwashesOnSelector

Allows the substitution of swash variants that appear only at the start of a line.

kLineInitialSwashesOffSelector

Prevents the substitution of swash variants that appear only at the start of a line.

kLineFinalSwashesOnSelector

Allows the substitution of swash variants that appear only at the end of a line.

kLineFinalSwashesOffSelector

Prevents the substitution of swash variants that appear only at the end of a line.

kNonFinalSwashesOnSelector

Allows the substitution of swash variants that are used at the beginning or middle of words. An example of this is the archaic long ā€œsā€.

kNonFinalSwashesOffSelector

Prevents the substitution of swash variants that are used at the beginning or middle of words. An example of this is the archaic long ā€œsā€.



< 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