Function

CTFontCreateWithPlatformFont

Creates a new font reference from an ATS font reference.

Declaration

CTFontRef CTFontCreateWithPlatformFont(ATSFontRef platformFont, CGFloat size, const CGAffineTransform *matrix, CTFontDescriptorRef attributes);

Parameters

platformFont

A valid ATSFontRef object.

size

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

matrix

The transformation matrix for the font. In most cases, set this parameter to be NULL. If NULL, the identity matrix is used. Optional.

attributes

A CTFontDescriptorRef containing additional attributes that should be matched. Optional.

Return Value

A new font reference for an ATSFontRef with the specified size, matrix, and additional attributes.

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.

CTFontCreateWithQuickdrawInstance

Returns a font reference for the given QuickDraw instance.

Deprecated