CTFontCollectionCreateMatchingFontDescriptorsWithOptions(_:_:)
Creates an array of font descriptors that match the specified collection.
Declaration
func CTFontCollectionCreateMatchingFontDescriptorsWithOptions(_ collection: CTFontCollection, _ options: CFDictionary?) -> CFArray?Parameters
- collection:
The font collection reference.
- options:
The options dictionary. Passing in
NULLreturns the same results as calling Ctfontcollectioncreatematchingfontdescriptors(_:), which uses the options specified during the collection’s creation.
Return Value
An array of CTFontDescriptor objects that match the collection definition, or NULL if there are none.