Font traits

Font traits defined and supported by NSFontManager.

Overview

NSFontManager categorizes fonts according to a small set of traits. You can convert fonts by adding and removing individual traits, and you can get a font with a specific combination of traits.

These pairs of traits are mutually exclusive:

  • NSCondensedFontMask and NSExpandedFontMask

  • NSBoldFontMask and NSUnboldFontMask

  • NSItalicFontMask and NSUnitalicFontMask

Topics

Constants

NSItalicFontMask

A mask that specifies an italic font.

NSBoldFontMask

A mask that specifies a bold font.

NSUnboldFontMask

A mask that specifies a font that is not bold.

NSNonStandardCharacterSetFontMask

A mask that specifies a font that uses a non-standard character set.

NSNarrowFontMask

A mask that specifies a narrow font.

NSExpandedFontMask

A mask that specifies an expanded font.

NSCondensedFontMask

A mask that specifies a condensed font.

NSSmallCapsFontMask

A mask that specifies a small-caps font.

NSPosterFontMask

A mask that specifies a poster-style font.

NSCompressedFontMask

A mask that specifies a compressed font.

NSFixedPitchFontMask

A mask that specifies a fixed pitch font.

NSUnitalicFontMask

A mask that specifies a font that is not italic.