CTFontCollectionCopyFontAttributes(_:_:_:)
Retrieves an array of dictionaries containing font descriptor attribute values.
Declaration
func CTFontCollectionCopyFontAttributes(_ collection: CTFontCollection, _ attributeNames: CFSet, _ options: CTFontCollectionCopyOptions) -> CFArrayParameters
- collection:
The font collection reference.
- attributeNames:
The attributes 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(_:). Setting Unique removes duplicate values. Setting Standardsort sorts the values in standard UI order.
Return Value
An array that contains one CFDictionary value for each descriptor mapping the specified attribute names.