Function

CTFontCopyVariation(_:)

Returns a variation dictionary from the font reference.

Declaration

func CTFontCopyVariation(_ font: CTFont) -> CFDictionary?

Parameters

font

The font reference.

Return Value

The current variation instance as a dictionary.

Discussion

The keys for each variation correspond to the variation identifier obtained via kCTFontVariationAxisIdentifierKey, which represents the four-character axis code as a CFNumber object.

See Also

Working With Font Variations

func CTFontCopyVariationAxes(CTFont) -> CFArray?

Returns an array of variation axes.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software