---
title: UIFontDescriptor.Class
framework: uikit
role: symbol
role_heading: Type Alias
path: uikit/uifontdescriptor/class
---

# UIFontDescriptor.Class

Constants that classify certain stylistic qualities of the font.

## Declaration

```swift
typealias Class = Int
```

## Discussion

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 and can be accessed through classMask. For additional information about the specific meaning of each identifier, refer to the OpenType specification.

## See Also

### Constants

- [UIFont.TextStyle](uikit/uifont/textstyle.md)
- [UIFontDescriptor.SystemDesign](uikit/uifontdescriptor/systemdesign.md)
- [UIFontDescriptor.SymbolicTraits](uikit/uifontdescriptor/symbolictraits-swift.struct.md)
- [UIFontDescriptor.AttributeName](uikit/uifontdescriptor/attributename.md)
- [UIFontDescriptor.FeatureKey](uikit/uifontdescriptor/featurekey.md)
- [UIFontDescriptor.TraitKey](uikit/uifontdescriptor/traitkey.md)
- [UIFont.Weight](uikit/uifont/weight.md)
- [UIFont.Width](uikit/uifont/width.md)
