Function

MACaptionAppearanceCopyFontDescriptorForStyle

Returns the preferred font for the specified style of type.

Declaration

CTFontDescriptorRef MACaptionAppearanceCopyFontDescriptorForStyle(MACaptionAppearanceDomain domain, MACaptionAppearanceBehavior *behavior, MACaptionAppearanceFontStyle fontStyle);

Parameters

domain

The domain to retrieve the preference value from. See MACaptionAppearanceDomain. Pass kMACaptionAppearanceDomainUser 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 NULL when 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.

See Also

Accessing Text Rendering Preferences

MACaptionAppearanceCopyForegroundColor

Returns the preference for text color.

MACaptionAppearanceGetForegroundOpacity

Returns the preference for text opacity.

MACaptionAppearanceGetRelativeCharacterSize

Returns the preference for font scaling.

MACaptionAppearanceGetTextEdgeStyle

Returns the preference for text edge style.