DOKK / manpages / debian 13 / libsdl3-ttf-doc / TTF_GetFontHeight.3.en
TTF_GetFontHeight(3) SDL_ttf3 FUNCTIONS TTF_GetFontHeight(3)

TTF_GetFontHeight - Query the total height of a font.

Defined in SDL3_ttf/SDL_ttf.h

#include "SDL3_ttf/SDL_ttf.h"
int TTF_GetFontHeight(const TTF_Font *font);

This is usually equal to point size.

the font to query.

Returns the font's height.

It is safe to call this function from any thread.

This function is available since SDL_ttf 3.0.0.

SDL_ttf 3.2.2 SDL_ttf