Function

CGFontRetain

Increments the retain count of a font.

Declaration

CGFontRef CGFontRetain(CGFontRef font);

Parameters

font

The font to retain.

Return Value

The same font you specified in the font parameter.

Discussion

This function is equivalent to CFRetain, except that it does not cause an error if the font parameter is NULL.

See Also

Retaining and Releasing a CGFont Object

CGFontRelease

Decrements the retain count of a font.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software