Structure

NSFontDescriptor.FeatureKey

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

Declaration

struct FeatureKey

Overview

These keys are used with featureSettings.

Topics

Feature Keys

static let typeIdentifier: NSFontDescriptor.FeatureKey

A key that indicates the type of the font feature.

static let selectorIdentifier: NSFontDescriptor.FeatureKey

A key that indicates the selector of the font feature.

Relationships

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.

struct NSFontDescriptor.SymbolicTraits

Stylistic aspects of a font.

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.

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.