Function

CTFontCreateWithQuickdrawInstance

Returns a font reference for the given QuickDraw instance.

Declaration

CTFontRef CTFontCreateWithQuickdrawInstance(ConstStr255Param name, int16_t identifier, uint8_t style, CGFloat size);

Parameters

name

The QuickDraw font name. If zero length, identifier must be specified.

identifier

The QuickDraw font identifier. Can be 0, but if so, name must be specified.

style

The QuickDraw font style.

size

The point size for the font reference. If 0.0 is specified, the default size of 12.0 is used.

Return Value

The best font instance matching the QuickDraw instance information.

Discussion

This function is provided for compatibility support between Core Text and clients needing to support QuickDraw-style font references. QuickDraw is a deprecated technology in macOS 10.4 and later.

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.

CTFontGetPlatformFont

Returns an ATS font reference and attributes.

CTFontCreateWithPlatformFont

Creates a new font reference from an ATS font reference.