Instance Method

traitsOfFont:

Returns the traits of the given font.

Declaration

- (NSFontTraitMask)traitsOfFont:(NSFont *)fontObj;

Parameters

aFont

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

- fontNamed:hasTraits:

Indicates whether the given font has all the specified traits.

- weightOfFont:

Returns an approximation of the weight of the given font.