Function CTFontCollectionCreateMatchingFontDescriptorsForFamily

Source
pub unsafe extern "C-unwind" fn CTFontCollectionCreateMatchingFontDescriptorsForFamily(
    collection: &CTFontCollection,
    family_name: &CFString,
    options: Option<&CFDictionary>,
) -> Option<CFRetained<CFArray>>
Available on crate feature CTFontCollection only.
Expand description

Returns an array of font descriptors matching the specified family, one descriptor for each style in the collection.

Parameter collection: The font collection reference.

Parameter familyName: The font family name

Returns: An array of CTFontDescriptors matching the specified family in the collection or NULL if there are none.