Structure

NSFontDescriptor.TraitKey

The following constants can be used as keys to retrieve information about a font descriptor from its trait dictionary.

Declaration

struct TraitKey

Overview

These keys are used with traits.

Topics

Trait Keys

static let symbolic: NSFontDescriptor.TraitKey

The symbolic traits value as an NSNumber object.

static let weight: NSFontDescriptor.TraitKey

The normalized weight value as an NSNumber object.

static let width: NSFontDescriptor.TraitKey

The relative inter-glyph spacing value as an NSNumber object.

static let slant: NSFontDescriptor.TraitKey

The relative slant angle value as an NSNumber object.

Relationships