Function

CTFontGetPlatformFont(_:_:)

Returns an ATS font reference and attributes.

Declaration

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

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

An ATSFontRef object for the given font reference.