applyFontTraits(_:range:)
Applies the specified font-related attributes to characters in the string.
Declaration
func applyFontTraits(_ traitMask: NSFontTraitMask, range: NSRange)Parameters
- traitMask:
The font attributes to apply. For information about the font traits you can apply, see Nsfontmanager.
- range:
The range of characters.
Discussion
Raises an rangeException if any part of range lies beyond the end of the receiver’s characters.