convertFontTraits(_:)
Converts font traits to a new traits mask value.
Declaration
func convertFontTraits(_ traits: NSFontTraitMask) -> NSFontTraitMaskParameters
- traits:
The current font traits.
Return Value
The new traits mask value to be used by convert(_:).
Discussion
This method is intended to be invoked to query the font traits while the action message (usually changeFont:) is being invoked when the current font action is either NSFontAction.addTraitFontAction or NSFontAction.removeTraitFontAction.