Type Alias

NSFontDescriptorAttributeName

These font attributes are defined by NSFontDescriptor.

Declaration

typedef NSString *NSFontDescriptorAttributeName;

Discussion

You can retrieve the values for these attributes using objectForKey:.

Topics

Font Attributes

NSFontFamilyAttribute

An optional NSString object that specifies the font family.

NSFontNameAttribute

An optional NSString object that specifies the font name.

NSFontFaceAttribute

An optional NSString object that specifies the font face.

NSFontSizeAttribute

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

NSFontVisibleNameAttribute

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

NSFontColorAttribute

An optional NSData object that specifies the font color.

Deprecated
NSFontMatrixAttribute

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

NSFontVariationAttribute

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

NSFontCharacterSetAttribute

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

NSFontCascadeListAttribute

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

NSFontTraitsAttribute

An NSDictionary instance fully describing font traits.

NSFontFixedAdvanceAttribute

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

See Also

Getting the Font Attributes

fontAttributes

The receiver’s dictionary of attributes.

- objectForKey:

Returns the font attribute specified by the given key.

matrix

The current transform matrix of the receiver.

pointSize

The point size of the receiver.

postscriptName

The PostScript name of the receiver.