SDL_ttf
SDL_ttf > Functions > Management
TTF_CloseFont
void TTF_CloseFont(TTF_Font *font)
font
- Pointer to the TTF_Font to free.
Free the memory used by font, and free font itself as well. Do not use font after this without loading a new font to it.
// free the font // TTF_Font *font; TTF_CloseFont(font); font=NULL; // to be safe...
See Also
TTF_OpenFont, TTF_OpenFontRW, TTF_OpenFontIndex, TTF_OpenFontIndexRW
