CTFontCreateWithPlatformFont(_:_:_:_:)
Creates a new font reference from an ATS font reference.
Declaration
func CTFontCreateWithPlatformFont(_ platformFont: ATSFontRef, _ size: CGFloat, _ matrix: UnsafePointer<CGAffineTransform>?, _ attributes: CTFontDescriptor?) -> CTFont?Parameters
- platformFont:
A valid Atsfontref object.
- size:
The point size for the font reference. If
0.0is 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. IfNULL, the identity matrix is used. Optional. - attributes:
A Ctfontdescriptor 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.