SDL_ttf

SDL_ttf > Functions > Management

TTF_CloseFont

void TTF_CloseFont(TTF_Font *font)

font

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

SDL_ttf/Functions/Management/TTF_CloseFont (last edited 2008-04-17 08:18:16 by localhost)