The attribute holding a generic font family identifier.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
Framework
- Core Media
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 k
or k
associated with each character.