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_kopie/Functions/Management/TTF_CloseFont (last edited 2009-02-25 23:12:05 by sign-4d0949c8)