Fonts

Manage the fonts used to display text.

Overview

The NSFont and NSFontManager classes encapsulate and manage font families, sizes, and variations. The NSFont class defines a single object for each distinct font; for efficiency, these objects, which can be rather large, are shared by all the objects in your app. The NSFontPanel class defines the font specification panel that’s presented to the user.

Topics

Font Data

NSFont

The representation of a font in an app.

NSFontDescriptor

A dictionary of attributes that describe a font.

NSFontTraitMask

Mask of traits assigned to a font, assigned using the values in Font traits.

NSFontFamilyClass

Constants that classify certain stylistic qualities of the font.

NSFontDescriptorSymbolicTraits

Stylistic aspects of a font.

NSFontSymbolicTraits

A symbolic description of stylistic aspects of a font.

Management

NSFontManager

The center of activity for the font conversion system.

NSFontCollection

A font collection, which is a group of font descriptors taken together as a single object.

NSMutableFontCollection

A mutable collection of fonts used to create a modifiable version of the NSFontCollection class.

NSFontCollectionOptions

Constants that support font collection management.

See Also

Text

Text Display

Display text and check spelling.

TextKit

Manage text storage and perform custom layout of text-based content in your app's views.