Function CTFontDescriptorCreateMatchingFontDescriptor

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

Returns an the single preferred matching font descriptor based on the original descriptor and system precedence.

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 normalized font descriptor matching the attributes present in descriptor. The original descriptor may be returned in normalized form.