Enumeration

CTFontSymbolicTraits

The symbolic representation of stylistic font attributes.

Declaration

typedef enum CTFontSymbolicTraits : uint32_t {
    ...
} CTFontSymbolicTraits;

Overview

CTFontSymbolicTraits symbolically describes stylistic aspects of a font. The upper 16 bits are used to describe appearance of the font, whereas the lower 16 bits are for typeface information. The font appearance information represented by the upper 16 bits can be used for stylistic font matching.

Topics

Symbolic Traits

kCTFontTraitItalic

The font typestyle is italic.

kCTFontTraitBold

The font typestyle is boldface.

kCTFontTraitExpanded

The font typestyle is expanded.

kCTFontTraitCondensed

The font typestyle is condensed.

kCTFontTraitMonoSpace

The font uses fixed-pitch glyphs if available.

kCTFontTraitVertical

The font uses vertical glyph variants and metrics.

kCTFontTraitUIOptimized

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

kCTFontTraitColorGlyphs

The font contains color glyphs.

kCTFontTraitComposite

The font is in Composite Font Reference format.

kCTFontTraitClassMask

Mask for the font class.

Deprecated Constants

kCTFontItalicTrait

The font typestyle is italic.

kCTFontBoldTrait

The font typestyle is boldface.

kCTFontExpandedTrait

The font typestyle is expanded.

kCTFontCondensedTrait

The font typestyle is condensed.

kCTFontMonoSpaceTrait

The font uses fixed-pitch glyphs if available.

kCTFontVerticalTrait

The font uses vertical glyph variants and metrics.

kCTFontUIOptimizedTrait

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

kCTFontColorGlyphsTrait

The font contains color glyphs.

kCTFontCompositeTrait

The font is in Composite Font Reference format.

kCTFontClassMaskTrait

Mask for the font class.

See Also

Accessing Font Traits

Font Traits

The keys for accessing font traits from a font descriptor.

Font Class Mask Shift Constants

These constants represent the font class mask shift.

CTFontStylisticClass

The stylistic class values of the font.