Instance Method

objectForKey:

Returns the font attribute specified by the given key.

Declaration

- (id)objectForKey:(NSFontDescriptorAttributeName)attribute;

Parameters

anAttribute

The font attribute key.

Return Value

The font attribute corresponding to anAttribute. For valid values of anAttribute, see Font Attributes.

See Also

Getting the Font Attributes

fontAttributes

The receiver’s dictionary of attributes.

NSFontDescriptorAttributeName

Constants for the names of font attributes.

NSFontDescriptorSymbolicTraits

A symbolic description of the stylistic aspects of a font.

matrix

The current transform matrix of the receiver.

pointSize

The point size of the receiver.

postscriptName

The PostScript name of the receiver.

NSFontDescriptorFeatureKey

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

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.

NSFontDescriptorVariationKey

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