Function

CTFontCopyName

Returns a reference to the requested name of the given font.

Declaration

CFStringRef CTFontCopyName(CTFontRef font, CFStringRef nameKey);

Parameters

font

The font reference.

nameKey

The name specifier. See Name Specifier Constants for possible values.

Return Value

The requested name for the font, or NULL if the font does not have an entry for the requested name. The Unicode version of the name is preferred, otherwise the first available version is returned.

See Also

Getting Font Names

CTFontCopyPostScriptName

Returns the PostScript name of the given font.

CTFontCopyFamilyName

Returns the family name of the given font.

CTFontCopyFullName

Returns the full name of the given font.

CTFontCopyDisplayName

Returns the display name of the given font.

CTFontCopyLocalizedName

Returns a reference to a localized name for the given font.