Function

CTFontGetPlatformFont

Returns an ATS font reference and attributes.

Declaration

ATSFontRef CTFontGetPlatformFont(CTFontRef font, CTFontDescriptorRef  _Nullable *attributes);

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.

See Also

Converting Fonts

CTFontCopyGraphicsFont

Returns a Core Graphics font reference and attributes.

CTFontCreateWithGraphicsFont

Creates a new font reference from an existing Core Graphics font reference.

CTFontCreateWithPlatformFont

Creates a new font reference from an ATS font reference.

CTFontCreateWithQuickdrawInstance

Returns a font reference for the given QuickDraw instance.

Deprecated