Function

CTFontDescriptorCopyAttribute

Returns the value associated with an arbitrary attribute.

Declaration

CFTypeRef CTFontDescriptorCopyAttribute(CTFontDescriptorRef descriptor, CFStringRef attribute);

Parameters

descriptor

The font descriptor.

attribute

The requested attribute.

Return Value

A retained reference to an arbitrary attribute, or NULL if the requested attribute is not present.

Discussion

Refer to Accessing Font Attributes for documentation explaining how each attribute is packaged as a CFType object.

See Also

Getting Attributes

CTFontDescriptorCopyAttributes

Returns the attributes dictionary of the font descriptor.

CTFontDescriptorCopyLocalizedAttribute

Returns a localized value for the requested attribute, if available.