Type Alias

NSFontFamilyClass

Constants that classify certain stylistic qualities of the font.

Declaration

typealias NSFontFamilyClass = UInt32

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

var NSFontUnknownClass: Int

The font has no design classification.

var NSFontOldStyleSerifsClass: Int

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

var NSFontTransitionalSerifsClass: Int

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

var NSFontModernSerifsClass: Int

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

var NSFontClarendonSerifsClass: Int

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

var NSFontSlabSerifsClass: Int

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

var NSFontFreeformSerifsClass: Int

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

var NSFontSansSerifClass: Int

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

var NSFontOrnamentalsClass: Int

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

var NSFontScriptsClass: Int

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

var NSFontSymbolicClass: Int

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

class NSFont

The representation of a font in an app.

class NSFontDescriptor

A dictionary of attributes that describe a font.

struct NSFontTraitMask

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

struct NSFontDescriptor.SymbolicTraits

Stylistic aspects of a font.

typealias NSFontSymbolicTraits

A symbolic description of stylistic aspects of a font.