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.
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.
Feature selector | Description |
|---|---|
Allows the substitution of swash variants that appear at the start of a word (or a line). This is the default setting. | |
Prevents the substitution of swash variants that appear at the start of a word (or a line). | |
Allows the substitution of swash variants that appear at the end of a word (or a line). | |
Prevents the substitution of swash variants that appear at the end of a word (or a line). | |
Allows the substitution of swash variants that appear only at the start of a line. | |
Prevents the substitution of swash variants that appear only at the start of a line. | |
Allows the substitution of swash variants that appear only at the end of a line. | |
Prevents the substitution of swash variants that appear only at the end of a line. | |
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ā. | |
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ā. |
Last updated: 2007-07-10