Function

CTFontCopyGraphicsFont(_:_:)

Returns a Core Graphics font reference and attributes.

Declaration

func CTFontCopyGraphicsFont(_ font: CTFont, _ attributes: UnsafeMutablePointer<Unmanaged<CTFontDescriptor>?>?) -> CGFont

Parameters

font

The font reference.

attributes

On output, points to a font descriptor containing additional attributes from the font. Can be NULL. Must be released by the caller.

Return Value

A CGFont object for the given font reference.