Function

CMTextFormatDescriptionGetFontName(_:localFontID:fontNameOut:)

Returns the font name for a local font ID.

Declaration

func CMTextFormatDescriptionGetFontName(_ desc: CMFormatDescription, localFontID: UInt16, fontNameOut: AutoreleasingUnsafeMutablePointer<CFString?>) -> OSStatus

Parameters

desc

CMFormatDescription being interrogated.

localFontID

Font number, local to the FormatDescription.

outFontName

On output, returns name of the font. The returned font is not retained by this call, so clients are required to retain it if they need to keep it longer.

Return Value

A result code. Returns noErr if successful.

See Also

Text-Specific Functions

func CMSwapBigEndianTextDescriptionToHost(UnsafeMutablePointer<UInt8>, Int) -> OSStatus

Converts a TextDescription data structure from big-endian to host-endian in place.

func CMSwapHostEndianTextDescriptionToBig(UnsafeMutablePointer<UInt8>, Int) -> OSStatus

Converts a TextDescription data structure from host-endian to big-endian in place.

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