Sets the font of characters within aRange to aFont.
On This Page
- (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.
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.