Function

CTFontGetMatrix(_:)

Returns the transformation matrix of the given font.

Declaration

func CTFontGetMatrix(_ font: CTFont) -> CGAffineTransform

Parameters

font

The font reference.

Return Value

The transformation matrix for the given font reference. This is the matrix that was provided when the font was created.

See Also

Getting Font Data

func CTFontCopyFontDescriptor(CTFont) -> CTFontDescriptor

Returns the normalized font descriptor for the given font reference.

func CTFontCopyAttribute(CTFont, CFString) -> CFTypeRef?

Returns the value associated with an arbitrary attribute of the given font.

func CTFontGetSize(CTFont) -> CGFloat

Returns the point size of the given font.

func CTFontGetSymbolicTraits(CTFont) -> CTFontSymbolicTraits

Returns the symbolic traits of the given font.

func CTFontCopyTraits(CTFont) -> CFDictionary

Returns the traits dictionary of the given font.