UnloadFont

Releases font resources.

Synopsis

void UnloadFont(FontDescriptor * fDesc)

Description

Releases resources acquired during LoadFont() or ParseFont() processing. If the font was loaded via LoadFont(), releases the FontDescriptor and unloads the file image, releasing the memory it occupied. If you loaded the font file image yourself and called ParseFont(), UnloadFont() releases the FontDescriptor. In that case, you must unload/release the font file image yourself.

Because TextCel structures contain a reference to a FontDescriptor, you must delete all TextCels that reference a FontDescriptor before you call UnloadFont() for that descriptor.

Arguments

FontDescriptor
Pointer to a FontDescriptor structure.

Associated Files

lib3do.lib, fontlib.h

See Also

LoadFont, ParseFont