CTFontCollectionCopyFontAttribute(_:_:_:)
Retrieves an array of font descriptor attribute values.
Declaration
func CTFontCollectionCopyFontAttribute(_ collection: CTFontCollection, _ attributeName: CFString, _ options: CTFontCollectionCopyOptions) -> CFArrayParameters
- collection:
The font collection reference.
- attributeName:
The attribute to retrieve for each descriptor in the collection.
- options:
Options to alter the return value. With Kctfontcollectioncopydefaultoptions, the values appear in the same order as the results from Ctfontcollectioncreatematchingfontdescriptors(_:), and
NULLvalues transform to Kcfnull. Setting Unique removes duplicate values. Setting Standardsort sorts the values in standard UI order.
Return Value
An array that contains one value for each descriptor.