Function

CTFontCopyGraphicsFont

Returns a Core Graphics font reference and attributes.

Declaration

CGFontRef CTFontCopyGraphicsFont(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

A CGFontRef object for the given font reference.

See Also

Converting Fonts

CTFontCreateWithGraphicsFont

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

CTFontGetPlatformFont

Returns an ATS font reference and attributes.

CTFontCreateWithPlatformFont

Creates a new font reference from an ATS font reference.

CTFontCreateWithQuickdrawInstance

Returns a font reference for the given QuickDraw instance.

Deprecated