Programmer's Reference
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.
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]