ttfGetFontSize function
Get the size of a font.
\param font the font to query. \returns the size of the font, or 0.0f on failure; call SDL_GetError() for more information.
\threadsafety This function should be called on the thread that created the font.
\since This function is available since SDL_ttf 3.0.0.
\sa TTF_SetFontSize \sa TTF_SetFontSizeDPI
extern SDL_DECLSPEC float SDLCALL TTF_GetFontSize(TTF_Font *font)
Implementation
double ttfGetFontSize(Pointer<TtfFont> font) {
final ttfGetFontSizeLookupFunction = libSdl3Ttf.lookupFunction<
Float Function(Pointer<TtfFont> font),
double Function(Pointer<TtfFont> font)>('TTF_GetFontSize');
return ttfGetFontSizeLookupFunction(font);
}