Instance Method

setFont:range:

Sets the font of characters within aRange to aFont.

Declaration

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

Discussion

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.

font

The font of all the receiver’s text.