Instance Method


Sets the font of characters within aRange to aFont.


- (void)setFont:(NSFont *)font range:(NSRange)range;


This method applies only to a rich text object.

This method does not include undo support by default. Clients must invoke shouldChangeTextInRanges:replacementStrings: or shouldChangeTextInRange:replacementString: to include this method in an undoable action.

See Also

Changing the font

- changeFont:

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


The font of all the receiver’s text.