Set font size dynamically with target resolutions (in DPI).
Defined in SDL_ttf.h
font | the font to resize. |
ptsize | the new point size. |
hdpi | the target horizontal DPI. |
vdpi | the target vertical DPI. |
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.