ttfGetFontHeight function
Query the total height of a font.
This is usually equal to point size.
\param font the font to query. \returns the font's height.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL_ttf 3.0.0.
extern SDL_DECLSPEC int SDLCALL TTF_GetFontHeight(const TTF_Font *font)
Implementation
int ttfGetFontHeight(Pointer<TtfFont> font) {
final ttfGetFontHeightLookupFunction = libSdl3Ttf.lookupFunction<
Int32 Function(Pointer<TtfFont> font),
int Function(Pointer<TtfFont> font)>('TTF_GetFontHeight');
return ttfGetFontHeightLookupFunction(font);
}