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

These font attributes are defined by NSFontDescriptor.

matrix

The current transform matrix of the receiver.

pointSize

The point size of the receiver.

postscriptName

The PostScript name of the receiver.