Enumeration

Typeface Information

Typeface information is specified by the lower 16 bits of NSFontSymbolicTraits using the following constants.

Declaration

enum : unsigned int {
    ...
};

Topics

Constants

NSFontItalicTrait

The font’s typestyle is italic.

NSFontBoldTrait

The font’s typestyle is boldface.

NSFontExpandedTrait

The font’s typestyle is expanded. Expanded and condensed traits are mutually exclusive.

NSFontCondensedTrait

The font’s typestyle is condensed. Expanded and condensed traits are mutually exclusive.

NSFontMonoSpaceTrait

The font uses fixed-pitch glyphs if available. The font may have multiple glyph advances (many CJK glyphs contain two spaces).

NSFontVerticalTrait

The font uses vertical glyph variants and metrics.

NSFontUIOptimizedTrait

The font synthesizes appropriate attributes for user interface rendering, such as control titles, if necessary.