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

The font has no design classification.

NSFontOldStyleSerifsClass

The font’s style is based on the Latin printing style of the 15th to 17th century.

NSFontTransitionalSerifsClass

The font’s style is based on the Latin printing style of the 18th to 19th century.

NSFontModernSerifsClass

The font’s style is based on the Latin printing style of the 20th century.

NSFontClarendonSerifsClass

The font’s style is a variation of the Oldstyle Serifs and the Transitional Serifs.

NSFontSlabSerifsClass

The font’s style is characterized by serifs with a square transition between the strokes and the serifs (no brackets).

NSFontFreeformSerifsClass

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

NSFontSansSerifClass

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

NSFontOrnamentalsClass

The font’s style includes highly decorated or stylized character shapes such as those typically used in headlines.

NSFontScriptsClass

The font’s style is among those typefaces designed to simulate handwriting.

NSFontSymbolicClass

The font’s 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

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

NSFontDescriptorSymbolicTraits

Stylistic aspects of a font.

NSFontSymbolicTraits

A symbolic description of stylistic aspects of a font.