Get font target resolutions, in dots per inch.
Defined in <SDL3_ttf/SDL_ttf.h>
bool TTF_GetFontDPI(TTF_Font *font, int *hdpi, int *vdpi);
TTF_Font * | font | the font to query. |
int * | hdpi | a pointer filled in with the target horizontal DPI. |
int * | vdpi | a pointer filled in with the target vertical DPI. |
(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
This function should be called on the thread that created the font.
This function is available since SDL_ttf 3.0.0.