MACaptionAppearanceCopyFontDescriptorForStyle(_:_:_:)
Returns the preferred font for the specified style of type.
Declaration
func MACaptionAppearanceCopyFontDescriptorForStyle(_ domain: MACaptionAppearanceDomain, _ behavior: UnsafeMutablePointer<MACaptionAppearanceBehavior>?, _ fontStyle: MACaptionAppearanceFontStyle) -> Unmanaged<CTFontDescriptor>Parameters
- domain:
The domain to retrieve the preference value from. See Macaptionappearancedomain. Pass User unless the system defaults are needed for comparison.
- behavior:
A pointer to memory. On return, this memory holds the caption appearance behavior for this preference setting. For possible values see Macaptionappearancebehavior. Pass
NULLwhen you do not need the behavior setting. - fontStyle:
A font style, such as cursive or small caps, see Macaptionappearancefontstyle.
Return Value
The name of the preferred font for the specified style.