Font Traits

The keys for accessing font traits from a font descriptor.

Topics

Font Trait Keys

let kCTFontSymbolicTrait: CFString

The symbolic traits value from the font traits dictionary.

let kCTFontWeightTrait: CFString

The normalized weight trait from the font traits dictionary.

let kCTFontWidthTrait: CFString

The normalized proportion (width condense or expand) trait from the font traits dictionary.

let kCTFontSlantTrait: CFString

The normalized slant angle from the font traits dictionary.

See Also

Accessing Font Traits

struct CTFontSymbolicTraits

The symbolic representation of stylistic font attributes.

struct CTFontStylisticClass

The stylistic class values of the font.