Contents

traits(of:)

Returns the traits of the given font.

Declaration

func traits(of fontObj: NSFont) -> NSFontTraitMask

Parameters

  • 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.

See Also

Examining Fonts