Structure

NSFontDescriptor.SymbolicTraits

A symbolic description of the stylistic aspects of a font.

Declaration

struct SymbolicTraits

Topics

Symbolic Traits

static var expanded: NSFontDescriptor.SymbolicTraits

The font’s characters have an expanded width.

static var condensed: NSFontDescriptor.SymbolicTraits

The font’s characters have a condensed width.

static var monoSpace: NSFontDescriptor.SymbolicTraits

The font’s characters all have the same width.

static var vertical: NSFontDescriptor.SymbolicTraits

The font uses vertical glyph variants and metrics.

static var UIOptimized: NSFontDescriptor.SymbolicTraits

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

static var tightLeading: NSFontDescriptor.SymbolicTraits

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

static var looseLeading: NSFontDescriptor.SymbolicTraits

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

static var classMask: NSFontDescriptor.SymbolicTraits

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

static var classOldStyleSerifs: NSFontDescriptor.SymbolicTraits

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

static var classTransitionalSerifs: NSFontDescriptor.SymbolicTraits

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

static var classModernSerifs: NSFontDescriptor.SymbolicTraits

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

static var classClarendonSerifs: NSFontDescriptor.SymbolicTraits

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

static var classSlabSerifs: NSFontDescriptor.SymbolicTraits

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

static var classFreeformSerifs: NSFontDescriptor.SymbolicTraits

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

static var classSansSerif: NSFontDescriptor.SymbolicTraits

The font’s characters don’t have serifs.

static var classOrnamentals: NSFontDescriptor.SymbolicTraits

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

static var classScripts: NSFontDescriptor.SymbolicTraits

The font’s characters simulate handwriting.

static var classSymbolic: NSFontDescriptor.SymbolicTraits

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

Relationships

Conforms To

See Also

Getting the Font Attributes

var fontAttributes: [NSFontDescriptor.AttributeName : Any]

The receiver’s dictionary of attributes.

func object(forKey: NSFontDescriptor.AttributeName) -> Any?

Returns the font attribute specified by the given key.

struct NSFontDescriptor.AttributeName

Constants for the names of font attributes.

var matrix: AffineTransform?

The current transform matrix of the receiver.

var pointSize: CGFloat

The point size of the receiver.

var postscriptName: String?

The PostScript name of the receiver.

struct NSFontDescriptor.FeatureKey

Constants to use as keys to retrieve information about a font descriptor from its feature dictionary.

typealias NSFontFamilyClass

Constants that classify certain stylistic qualities of the font.

NSFontFamilyClassMask

Constant you use to access NSFontFamilyClass values in the upper four bits of NSFontSymbolicTraits.

Typeface Information

Constants for type faces such as italic or bold.

struct NSFontDescriptor.VariationKey

Constants that can be used as keys to retrieve information about a font descriptor from its variation axis dictionary.