Function

CTFontCopyAttribute

Returns the value associated with an arbitrary attribute of the given font.

Declaration

CFTypeRef CTFontCopyAttribute(CTFontRef font, CFStringRef attribute);

Parameters

font

The font reference.

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 the attribute definitions documentation for information as to how each attribute is packaged as a CFType.

See Also

Getting Font Data

CTFontCopyFontDescriptor

Returns the normalized font descriptor for the given font reference.

CTFontGetSize

Returns the point size of the given font.

CTFontGetMatrix

Returns the transformation matrix of the given font.

CTFontGetSymbolicTraits

Returns the symbolic traits of the given font.

CTFontCopyTraits

Returns the traits dictionary of the given font.

CTFontCopyDefaultCascadeListForLanguages

Retrieves an ordered list of font substitution preferences.