Instance Method

changeFont:

This action method changes the font of the selection for a rich text object, or of all text for a plain text object.

Declaration

- (void)changeFont:(id)sender;

Discussion

If the receiver doesn’t use the Font panel, this method does nothing.

This method changes the font by sending a convertFont: message to the shared NSFontManager and applying each NSFont returned to the appropriate text. See the NSFontManager class specification for more information on font conversion.

See Also

Changing the font

font

The font of all the receiver’s text.

- setFont:range:

Sets the font of characters within aRange to aFont.