Contents

CTFontCopyTraits(_:)

Returns the traits dictionary of the given font.

Declaration

func CTFontCopyTraits(_ font: CTFont) -> CFDictionary

Parameters

  • font:

    The font reference.

Return Value

A retained reference to the font traits dictionary. Individual traits can be accessed with the trait key constants.

Discussion

See the Constants section of CTFontDescriptor for a definition of the font traits.

See Also

Getting Font Data