Enumeration

CTFontStylisticClass

The stylistic class values of the font.

Declaration

typedef enum CTFontStylisticClass : uint32_t {
    ...
} 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 and can be obtained via kCTFontClassMaskTrait.

Topics

Stylistic Classes

kCTFontClassUnknown

The font has no design classification.

kCTFontClassOldStyleSerifs

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

kCTFontClassTransitionalSerifs

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

kCTFontClassModernSerifs

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

kCTFontClassClarendonSerifs

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

kCTFontClassSlabSerifs

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

kCTFontClassFreeformSerifs

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

kCTFontClassSansSerif

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

kCTFontClassOrnamentals

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

kCTFontClassScripts

A font style among those typefaces designed to simulate handwriting.

kCTFontClassSymbolic

A generally design-independent font style.

Deprecated Constants

kCTFontUnknownClass

The font has no design classification.

kCTFontOldStyleSerifsClass

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

kCTFontTransitionalSerifsClass

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

kCTFontModernSerifsClass

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

kCTFontClarendonSerifsClass

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

kCTFontSlabSerifsClass

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

kCTFontFreeformSerifsClass

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

kCTFontSansSerifClass

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

kCTFontOrnamentalsClass

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

kCTFontScriptsClass

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

kCTFontSymbolicClass

The font’s style is generally design independent.

See Also

Accessing Font Traits

Font Traits

The keys for accessing font traits from a font descriptor.

Font Class Mask Shift Constants

These constants represent the font class mask shift.

CTFontSymbolicTraits

The symbolic representation of stylistic font attributes.