TTF_GetFontSize - Get the size of a font.
Contents
Availability
This function is available since SDL_ttf 3.0.0.
Function Parameters
font the font to query.
Header File
Defined in SDL3_ttf/SDL_ttf.h
Name
TTF_GetFontSize - Get the size of a font.
Return Value
Returns the size of the font, or 0.0f on failure; call SDL_GetError() for more information.
See Also
•(3), TTF_SetFontSize(3), •(3), TTF_SetFontSizeDPI(3) SDL_ttf SDL_ttf 3.2.2 TTF_GetFontSize(3)
Synopsis
#include"SDL3_ttf/SDL_ttf.h"floatTTF_GetFontSize(TTF_Font*font);
Thread Safety
This function should be called on the thread that created the font.
