Function CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback

Source
pub unsafe extern "C-unwind" fn CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(
    collection: &CTFontCollection,
    sort_callback: CTFontCollectionSortDescriptorsCallback,
    ref_con: *mut c_void,
) -> Option<CFRetained<CFArray>>
Available on crate features CTFontCollection and CTFontDescriptor only.
Expand description

Returns the array of matching font descriptors sorted with the callback function.

Parameter collection: The collection reference.

Parameter sortCallback: The sorting callback function that defines the sort order.

Parameter refCon: Pointer to client data define context for the callback.

Returns: An array of CTFontDescriptors matching the criteria of the collection, sorted by the results of the sorting callback function, or NULL if there are none.