Releases font resources.
void UnloadFont(FontDescriptor * fDesc)
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.
lib3do.lib, fontlib.h
LoadFont
, ParseFont