traits(of:)
Returns the traits of the given font.
Declaration
func traits(of fontObj: NSFont) -> NSFontTraitMaskParameters
- fontObj:
The font whose traits are returned.
Return Value
The font traits, returned as a mask created by combining values listed in Constants with the C bitwise OR operator.