Applies the font attributes specified by mask
to the characters in a
.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
- (void)applyFontTraits:(NSFont Trait Mask)traitMask range:(NSRange)range;
Parameters
mask
The font attributes to apply. For information about the font traits you can apply, see
NSFont
.Manager aRange
The range of characters.
Discussion
Raises an NSRange
if any part of a
lies beyond the end of the receiver’s characters.