Structure

NSFontDescriptor.AttributeName

These font attributes are defined by NSFontDescriptor.

Declaration

struct AttributeName

Overview

You can retrieve the values for these attributes using object(forKey:).

Topics

Font Attributes

static let family: NSFontDescriptor.AttributeName

An optional NSString object that specifies the font family.

static let name: NSFontDescriptor.AttributeName

An optional NSString object that specifies the font name.

static let face: NSFontDescriptor.AttributeName

An optional NSString object that specifies the font face.

static let size: NSFontDescriptor.AttributeName

An optional NSNumber object, containing a float value, that specifies the font size.

static let visibleName: NSFontDescriptor.AttributeName

An optional NSString object that specifies the font’s visible name.

static let matrix: NSFontDescriptor.AttributeName

An NSAffineTransform instance that specifies the font’s transformation matrix.

static let variation: NSFontDescriptor.AttributeName

An NSDictionary instance that describes the font’s variation axis.

static let characterSet: NSFontDescriptor.AttributeName

An NSCharacterSet instance that represents the set of Unicode characters covered by the font.

static let cascadeList: NSFontDescriptor.AttributeName

An NSArray instance—each member of the array is a sub-descriptor.

static let traits: NSFontDescriptor.AttributeName

An NSDictionary instance fully describing font traits.

static let fixedAdvance: NSFontDescriptor.AttributeName

An NSNumber instance containing a float value that overrides the glyph advancement specified by the font.

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.

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.