Set font size dynamically with target resolutions (in DPI).
Defined in <SDL_ttf.h>
int TTF_SetFontSizeDPI(TTF_Font *font, int ptsize, unsigned int hdpi, unsigned int vdpi);
TTF_Font * | font | the font to resize. |
int | ptsize | the new point size. |
unsigned int | hdpi | the target horizontal DPI. |
unsigned int | vdpi | the target vertical DPI. |
(int) Returns 0 if successful, -1 on error.
This clears already-generated glyphs, if any, from the cache.
This function is available since SDL_ttf 2.0.18.