<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIFontDescriptor/Class",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@T@UIFontDescriptorClass"
  },
  "title" : "UIFontDescriptor.Class"
}
-->

# UIFontDescriptor.Class

Constants that classify certain stylistic qualities of the font.

```
typealias Class = Int
```

## 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 the [`UIFontDescriptor.SymbolicTraits`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct) and can be accessed through [`classMask`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/classMask). For additional information about the specific meaning of each identifier, refer to the OpenType specification.

---

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)