Structure

CTFontSymbolicTraits

The symbolic representation of stylistic font attributes.

Declaration

struct 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

static var traitBold: CTFontSymbolicTraits

The font typestyle is boldface.

static var traitExpanded: CTFontSymbolicTraits

The font typestyle is expanded.

static var traitCondensed: CTFontSymbolicTraits

The font typestyle is condensed.

static var traitMonoSpace: CTFontSymbolicTraits

The font uses fixed-pitch glyphs if available.

static var traitVertical: CTFontSymbolicTraits

The font uses vertical glyph variants and metrics.

static var traitUIOptimized: CTFontSymbolicTraits

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

static var traitComposite: CTFontSymbolicTraits

The font is in Composite Font Reference format.

Deprecated Constants

static var boldTrait: CTFontSymbolicTraits

The font typestyle is boldface.

static var expandedTrait: CTFontSymbolicTraits

The font typestyle is expanded.

static var condensedTrait: CTFontSymbolicTraits

The font typestyle is condensed.

static var monoSpaceTrait: CTFontSymbolicTraits

The font uses fixed-pitch glyphs if available.

static var verticalTrait: CTFontSymbolicTraits

The font uses vertical glyph variants and metrics.

static var uiOptimizedTrait: CTFontSymbolicTraits

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

static var compositeTrait: CTFontSymbolicTraits

The font is in Composite Font Reference format.

Relationships

Conforms To

See Also

Accessing Font Traits

Font Traits

The keys for accessing font traits from a font descriptor.

struct CTFontStylisticClass

The stylistic class values of the font.