MACaptionAppearanceCopyFontDescriptorForStyle

Function MACaptionAppearanceCopyFontDescriptorForStyle 

Source
pub unsafe extern "C-unwind" fn MACaptionAppearanceCopyFontDescriptorForStyle(
    domain: MACaptionAppearanceDomain,
    behavior: *mut MACaptionAppearanceBehavior,
    font_style: MACaptionAppearanceFontStyle,
) -> CFRetained<CTFontDescriptor>
Available on crate features MACaptionAppearance and objc2-core-text only.
Expand description

User font preference for the specified style.

Parameter domain: Preference domain, see

 MACaptionAppearanceDomain

.

Parameter behavior: (see

 MACaptionAppearanceBehavior

)

Parameter fontStyle: Font style, see

 MACaptionAppearanceFontStyle

.

Returns: User font preference for the specified style.

ยงSafety

behavior must be a valid pointer or null.