<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/CTFontStylisticClass",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@E@CTFontStylisticClass"
  },
  "title" : "CTFontStylisticClass"
}
-->

# CTFontStylisticClass

The stylistic class values of the font.

```
struct CTFontStylisticClass
```

## Overview

`CTFontStylisticClass` identifies certain stylistic qualities of the font. 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 [`CTFontSymbolicTraits`](/documentation/CoreText/CTFontSymbolicTraits) and can be obtained via [`classMaskTrait`](/documentation/CoreText/CTFontSymbolicTraits/classMaskTrait).

## Topics

### Initializers

[`init(rawValue:)`](/documentation/CoreText/CTFontStylisticClass/init(rawValue:))

Creates a stylistic class structure with the specified raw value.

### Stylistic Classes

[`kCTFontClassUnknown`](/documentation/CoreText/CTFontStylisticClass/kCTFontClassUnknown)

The font has no design classification.

[`kCTFontClassOldStyleSerifs`](/documentation/CoreText/CTFontStylisticClass/classOldStyleSerifs)

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

[`kCTFontClassTransitionalSerifs`](/documentation/CoreText/CTFontStylisticClass/classTransitionalSerifs)

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

[`kCTFontClassModernSerifs`](/documentation/CoreText/CTFontStylisticClass/classModernSerifs)

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

[`kCTFontClassClarendonSerifs`](/documentation/CoreText/CTFontStylisticClass/classClarendonSerifs)

A font style variation of the Oldstyle Serifs and the Transitional Serifs.

[`kCTFontClassSlabSerifs`](/documentation/CoreText/CTFontStylisticClass/classSlabSerifs)

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

[`kCTFontClassFreeformSerifs`](/documentation/CoreText/CTFontStylisticClass/classFreeformSerifs)

A font style that includes serifs but expresses a design freedom that doesn’t generally fit within the other serif design classifications.

[`kCTFontClassSansSerif`](/documentation/CoreText/CTFontStylisticClass/classSansSerif)

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

[`kCTFontClassOrnamentals`](/documentation/CoreText/CTFontStylisticClass/classOrnamentals)

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

[`kCTFontClassScripts`](/documentation/CoreText/CTFontStylisticClass/classScripts)

A font style among those typefaces designed to simulate handwriting.

[`kCTFontClassSymbolic`](/documentation/CoreText/CTFontStylisticClass/classSymbolic)

A generally design-independent font style.

### Deprecated Constants

[`kCTFontUnknownClass`](/documentation/CoreText/CTFontStylisticClass/kCTFontUnknownClass)

The font has no design classification.

[`kCTFontOldStyleSerifsClass`](/documentation/CoreText/CTFontStylisticClass/oldStyleSerifsClass)

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

[`kCTFontTransitionalSerifsClass`](/documentation/CoreText/CTFontStylisticClass/transitionalSerifsClass)

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

[`kCTFontModernSerifsClass`](/documentation/CoreText/CTFontStylisticClass/modernSerifsClass)

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

[`kCTFontClarendonSerifsClass`](/documentation/CoreText/CTFontStylisticClass/clarendonSerifsClass)

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

[`kCTFontSlabSerifsClass`](/documentation/CoreText/CTFontStylisticClass/slabSerifsClass)

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

[`kCTFontFreeformSerifsClass`](/documentation/CoreText/CTFontStylisticClass/freeformSerifsClass)

The font’s style includes serifs but expresses a design freedom that doesn’t generally fit within the other serif design classifications.

[`kCTFontSansSerifClass`](/documentation/CoreText/CTFontStylisticClass/sansSerifClass)

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

[`kCTFontOrnamentalsClass`](/documentation/CoreText/CTFontStylisticClass/ornamentalsClass)

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

[`kCTFontScriptsClass`](/documentation/CoreText/CTFontStylisticClass/scriptsClass)

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

[`kCTFontSymbolicClass`](/documentation/CoreText/CTFontStylisticClass/symbolicClass)

The font’s style is generally design independent.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)