TTF_GetFontSize(3)
π NAME π
TTF_GetFontSize β bestie, this one gets the size of a font. That's it. That's the whole job. π
β¨ HEADER FILE β¨
Defined in SDL3_ttf/SDL_ttf.h β go say hi to it there, iykyk. π¦
πΈ SYNOPSIS πΈ
#include "SDL3_ttf/SDL_ttf.h"
float TTF_GetFontSize(TTF_Font *font);
okay so it's literally one line and it returns a float. no cap. π
π«Ά FUNCTION PARAMETERS π«Ά
fontβ the font you're trying to interrogate. the one you want the size of. that font. her. π
π RETURN VALUE π
Returns the size of the font. and if it's giving nothing, you get 0.0f on failure. when that happens, call SDL_GetError() for more information β she will tell you what went wrong, fr fr. π
π₯ THREAD SAFETY π₯
This function should be called on the thread that created the font. not a different thread. not your friend's thread. the same one. periodt. β
π AVAILABILITY π
This function is available since SDL_ttf 3.0.0. so it's been iconic for a minute. β¨
π SEE ALSO π
β’(3),TTF_SetFontSize(3),β’(3),TTF_SetFontSizeDPI(3)
go read those next, bestie, they're the sibling functions and they ate. π§
and that's the whole page!! mwah π β written under the SDL_ttf era, version SDL_ttf 3.2.2, and yes this page is literally named TTF_GetFontSize(3). slay, bye!! π
π¦ where this page comes from
- debian trixie: libsdl3-ttf-doc 3.2.2+ds-1 Β· Zlib
- fedora 43: SDL3_ttf-devel 3.2.2-2.fc43 Β· Zlib AND MIT
- fedora 43: SDL3_ttf-devel 3.2.2-2.fc43 Β· Zlib AND MIT
- fedora 44: SDL3_ttf-devel 3.2.2-4.fc44 Β· Zlib AND MIT
- fedora 44: SDL3_ttf-devel 3.2.2-4.fc44 Β· Zlib AND MIT
- ubuntu questing: libsdl3-ttf-doc 3.2.2+ds-1
- ubuntu resolute: libsdl3-ttf-doc 3.2.2+ds-1build1 Β· Zlib
- ubuntu stonking: libsdl3-ttf-doc 3.2.2+ds-2 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms