Set a font's size dynamically.
int TTF_SetFontSize(TTF_Font *font, int ptsize);
font | the font to resize. |
ptsize | the new point size. |
Returns 0 if successful, -1 on error
This clears already-generated glyphs, if any, from the cache.
This function is available since SDL_ttf 3.0.0.