Function

CTFontCreateWithQuickdrawInstance(_:_:_:_:)

Returns a font reference for the given QuickDraw instance.

Declaration

func CTFontCreateWithQuickdrawInstance(_ name: ConstStr255Param?, _ identifier: Int16, _ style: UInt8, _ size: CGFloat) -> CTFont

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.