Instance Method

convertFont:

Converts the given font according to the object that initiated a font change, typically the Font panel or Font menu.

Declaration

- (NSFont *)convertFont:(NSFont *)fontObj;

Parameters

aFont

The font to convert.

Return Value

The converted font, or aFont itself if the conversion isn’t possible.

Discussion

This method is invoked in response to an action message such as addFontTrait: or modifyFontViaPanel:. These initiating methods cause the font manager to query the sender for the action to take and the traits to change. See Converting Fonts Manually for more information.

See Also

Converting Fonts Automatically

- changeFont:

Informs responders of a font change.

Deprecated