<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFontFamilyClass",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@T@NSFontFamilyClass"
  },
  "title" : "NSFontFamilyClass"
}
-->

# NSFontFamilyClass

Constants that classify certain stylistic qualities of the font.

```
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`](/documentation/AppKit/NSFontSymbolicTraits) and can be accessed via [`NSFontFamilyClassMask`](/documentation/AppKit/NSFontFamilyClassMask). For more information about the specific meaning of each identifier, refer to the OpenType specification.

## Topics

### Constants

[`var NSFontUnknownClass: Int`](/documentation/AppKit/NSFontUnknownClass)

A font with no design classification.

[`var NSFontOldStyleSerifsClass: Int`](/documentation/AppKit/NSFontOldStyleSerifsClass)

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

[`var NSFontTransitionalSerifsClass: Int`](/documentation/AppKit/NSFontTransitionalSerifsClass)

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

[`var NSFontModernSerifsClass: Int`](/documentation/AppKit/NSFontModernSerifsClass)

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

[`var NSFontClarendonSerifsClass: Int`](/documentation/AppKit/NSFontClarendonSerifsClass)

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

[`var NSFontSlabSerifsClass: Int`](/documentation/AppKit/NSFontSlabSerifsClass)

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

[`var NSFontFreeformSerifsClass: Int`](/documentation/AppKit/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.

[`var NSFontSansSerifClass: Int`](/documentation/AppKit/NSFontSansSerifClass)

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

[`var NSFontOrnamentalsClass: Int`](/documentation/AppKit/NSFontOrnamentalsClass)

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

[`var NSFontScriptsClass: Int`](/documentation/AppKit/NSFontScriptsClass)

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

[`var NSFontSymbolicClass: Int`](/documentation/AppKit/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.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)