Programmer Reference : Common Graphics : Using fonts : Releasing CgFonts and CgFontStructs from memory
Releasing CgFonts and CgFontStructs from memory
You can release fonts or fontStructs from memory either by sending the unloadFont message to a CgFont object or by sending the freeFont message to a CgFontStruct object. This should be done when the font is no longer required for drawing.
Tip:
Every font loaded with loadFont: must be unloaded using unloadFont. Every fontStruct loaded with queryFont: or loadQueryFont: must be freed using freeFont. The freeFont method also unloads the CgFont object associated with the CgFontStruct.
Last modified date: 01/29/2015