NSCharacterShapeAttributeName
The character shape attribute.
Declaration
extern NSAttributedStringKey NSCharacterShapeAttributeName;Discussion
An integer value. The value is interpreted as Apple Type Services kCharacterShapeType selector + 1.
The character shape feature type (kCharacterShapeType) is used when a single font contains different appearances for the same character shape, and these shapes are not traditionally treated as swashes. It is needed for languages such as Chinese that have both traditional and simplified character sets. The default value is 0 (disable). 1 is kTraditionalCharactersSelector, and so on. Refer to <ATS/SFNTLayoutTypes.h> and Font Features in ATSUI Programming Guide for additional information.