Deleting Logical Fonts and Unloading Physical Fonts

A logical font can be used only by the application that defines it. The logical font definition is stored in the presentation space and is saved on the LIFO stack with its lcid when GpiSavePS is called. Unlike a physical font definition, a logical font definition is temporary and is lost when the presentation space is deleted.

To specifically delete a logical font, call GpiDeleteSetId, which deletes the logical font, and makes its lcid available for reuse. Sometimes this is necessary because there are only 255 lcids available. The logical font must not be the current font when you call GpiDeleteSetId.

Logical fonts are deleted to release the lcid and free memory. Unload private fonts using GpiUnloadFonts to free memory and to make them no longer available. Uninstall public fonts using the Control Panel to free memory and to make them no longer available.

You must end the association between physical and logical fonts before calling GpiUnloadFonts.

If you call GpiUnloadFonts to unload a private font file, you must end the association between the physical fonts in that file and the logical fonts defined by the application. Do the following:


[Back: Selecting the New Current Font]
[Next: Creating Fonts]