Contents

CMTextFormatDescriptionGetFontName(_:localFontID:fontNameOut:)

Returns a font name for a local font identifier.

Declaration

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

Parameters

  • desc:

    CMFormatDescription being interrogated.

  • localFontID:

    Font number, local to the FormatDescription.

  • fontNameOut:

    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

Working with Text Descriptions