API reference / Text with SDL_ttf
TTF_CloseFont
Function, SDL_ttf
Closes a font and frees its memory.
Declaration
#include <SDL3_ttf/SDL_ttf.h>
void TTF_CloseFont(TTF_Font *font);Parameters
font | The font. |
Example
TTF_CloseFont(title_font);See this code run in Draw text. Download the full program (.zip)
In SDL2
The name is the same.