Function CTFontDescriptorCreateMatchingFontDescriptors

Source
pub unsafe extern "C-unwind" fn CTFontDescriptorCreateMatchingFontDescriptors(
    descriptor: &CTFontDescriptor,
    mandatory_attributes: Option<&CFSet>,
) -> Option<CFRetained<CFArray>>
Available on crate feature CTFontDescriptor only.
Expand description

Returns an array of font normalized font descriptors matching the provided descriptor.

Parameter descriptor: The font descriptor reference.

Parameter mandatoryAttributes: A set of attribute keys which are required to be identically matched in any returned font descriptors. Optional.

Returns: This function returns a retained array of normalized font descriptors matching the attributes present in descriptor. If descriptor itself is normalized then the array will contain only one item, the original descriptor.