Type Alias

NSFontFamilyClass

Constants that classify certain stylistic qualities of the font.

Declaration

typedef uint32_t NSFontFamilyClass;

Discussion

These values correspond closely to the font class values in the OpenType OS/2 table. The class values are bundled in the upper four bits of NSFontSymbolicTraits and can be accessed via NSFontFamilyClassMask. For more information about the specific meaning of each identifier, refer to the OpenType specification.

Topics

Constants

NSFontUnknownClass

A font with no design classification.

NSFontOldStyleSerifsClass

A font where the style is based on the Latin printing style of the 15th to 17th century.

NSFontTransitionalSerifsClass

A font where the style is based on the Latin printing style of the 18th to 19th century.

NSFontModernSerifsClass

A font where the style is based on the Latin printing style of the 20th century.

NSFontClarendonSerifsClass

A font where the style is a variation of the Oldstyle Serifs and the Transitional Serifs.

NSFontSlabSerifsClass

A font where the style is characterized by serifs with a square transition between the strokes and the serifs (no brackets).

NSFontFreeformSerifsClass

A font where the style includes serifs, but it expresses a design freedom that does not generally fit within the other serif design classifications.

NSFontSansSerifClass

A font where the style includes most basic letter forms (excluding Scripts and Ornamentals) that do not have serifs on the strokes.

NSFontOrnamentalsClass

A font where the style includes highly decorated or stylized character shapes such as those typically used in headlines.

NSFontScriptsClass

A font where the style is among those typefaces designed to simulate handwriting.

NSFontSymbolicClass

A font where the style is generally design independent, making it suitable for special characters (icons, dingbats, technical symbols, and so on) that may be used equally well with any font.

See Also

Font Data

NSFont

The representation of a font in an app.

NSFontDescriptor

A dictionary of attributes that describe a font.

NSFontTraitMask

Constants for isolating specific traits of a font.

NSFontDescriptorSymbolicTraits

Stylistic aspects of a font.

NSFontSymbolicTraits

A symbolic description of stylistic aspects of a font.