CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(_:_:_:)
Returns the array of matching font descriptors sorted with the callback function.
Declaration
func CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(_ collection: CTFontCollection, _ sortCallback: CTFontCollectionSortDescriptorsCallback?, _ refCon: UnsafeMutableRawPointer?) -> CFArray?Parameters
- collection:
The collection reference.
- sortCallback:
The sorting callback function that defines the sort order.
- refCon:
Pointer to client data define context for the callback.
Return Value
An array of font descriptors matching the criteria of the collection sorted by the results of the sorting callback function.