<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIFontDescriptorSymbolicTraits"
  },
  "title" : "UIFontDescriptor.SymbolicTraits"
}
-->

# UIFontDescriptor.SymbolicTraits

Constants that describe the stylistic aspects of a font.

```
struct SymbolicTraits
```

## Overview

The lower 16 bits represent the typeface, and the upper 16 bits describe appearance of the font. The font appearance information represented by the upper 16 bits of <doc://com.apple.documentation/documentation/AppKit/NSFontSymbolicTraits> can be used for stylistic font matching. [`UIFontDescriptor.Class`](/documentation/UIKit/UIFontDescriptor/Class) constants classify certain stylistic qualities of the font.

## Topics

### Font traits

[`UIFontDescriptorTraitItalic`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/traitItalic)

The font’s style is italic.

[`UIFontDescriptorTraitBold`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/traitBold)

The font’s style is boldface.

[`UIFontDescriptorTraitExpanded`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/traitExpanded)

The font’s characters have an expanded width.

[`UIFontDescriptorTraitCondensed`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/traitCondensed)

The font’s characters have a condensed width.

[`UIFontDescriptorTraitMonoSpace`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/traitMonoSpace)

The font’s characters all have the same width.

[`UIFontDescriptorTraitVertical`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/traitVertical)

The font uses vertical glyph variants and metrics.

[`UIFontDescriptorTraitUIOptimized`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/traitUIOptimized)

The font synthesizes appropriate attributes for user interface rendering, such as in control titles, if necessary.

[`UIFontDescriptorTraitTightLeading`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/traitTightLeading)

The font uses a leading value that’s less than the default.

[`UIFontDescriptorTraitLooseLeading`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/traitLooseLeading)

The font uses a leading value that’s greater than the default.

[`UIFontDescriptorClassMask`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/classMask)

The font family class mask that you use to access font descriptor values.

[`UIFontDescriptorClassOldStyleSerifs`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/classOldStyleSerifs)

The font’s characters include serifs, and reflect the Latin printing style of the 15th to 17th centuries.

[`UIFontDescriptorClassTransitionalSerifs`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/classTransitionalSerifs)

The font’s characters include serifs, and reflect the Latin printing style of the 18th to 19th centuries.

[`UIFontDescriptorClassModernSerifs`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/classModernSerifs)

The font’s characters include serifs, and reflect the Latin printing style of the 20th century.

[`UIFontDescriptorClassClarendonSerifs`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/classClarendonSerifs)

The font’s characters include variations of old style and transitional serifs.

[`UIFontDescriptorClassSlabSerifs`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/classSlabSerifs)

The font’s characters use square transitions, without brackets, between strokes and serifs.

[`UIFontDescriptorClassFreeformSerifs`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/classFreeformSerifs)

The font’s characters include serifs, and don’t generally fit within other serif design classifications.

[`UIFontDescriptorClassSansSerif`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/classSansSerif)

The font’s characters don’t have serifs.

[`UIFontDescriptorClassOrnamentals`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/classOrnamentals)

The font’s characters use highly decorated or stylized character shapes.

[`UIFontDescriptorClassScripts`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/classScripts)

The font’s characters simulate handwriting.

[`UIFontDescriptorClassSymbolic`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/classSymbolic)

The font’s characters consist mainly of symbols rather than letters and numbers.

### Initializer

[`init(rawValue:)`](/documentation/UIKit/UIFontDescriptor/SymbolicTraits-swift.struct/init(rawValue:))

Creates a symbol traits structure with the specified raw value.

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`OptionSet`](/documentation/Swift/OptionSet)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`Equatable`](/documentation/Swift/Equatable)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`Sendable`](/documentation/Swift/Sendable)

---

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)