Global Variable

kCMTextMarkupAttribute_GenericFontFamilyName

The attribute holding a generic font family identifier.

Declaration

let kCMTextMarkupAttribute_GenericFontFamilyName: CFString

Discussion

Value must be one of the CFString constants in Generic Font Names. Generic fonts must be mapped to the family name of an installed font before rendering and/or measuring text (see Media Accessibility Function).

When vended by legible output, an attributed string will have at most one of kCMTextMarkupAttribute_FontFamilyName or kCMTextMarkupAttribute_GenericFontFamilyName associated with each character.