TTF_GetFontSDF(3)
β¨ NAME β¨
TTF_GetFontSDF β bestie, this is your lil spy function that checks whether Signed Distance Field rendering is turned on for a font π
π HEADER FILE π
It lives in SDL3_ttf/SDL_ttf.h, so that's the file you gotta have in your life π
π SYNOPSIS π
#include "SDL3_ttf/SDL_ttf.h"
bool TTF_GetFontSDF(const TTF_Font *font);
πΈ FUNCTION PARAMETERS πΈ
fontβ the font you're interrogating, like, "soβ¦ are you SDF or not?" π΅οΈβοΈ
π« RETURN VALUE π«
It hands you back true if SDF rendering is enabled, and false if it's not. That's it, that's the whole tea β
π§΅ THREAD SAFETY π§΅
It is safe to call this function from any thread. Go off, multithreaded queen π
π¦ AVAILABILITY π¦
This function has been available since SDL_ttf 3.0.0 β so it's been iconic for a minute β¨
π SEE ALSO π
β’(3)TTF_SetFontSDF(3)β the one that actually sets the thing, iykyk π₯
okay that's the whole page, no cap π This was pulled from the SDL_ttf docs, version SDL_ttf 3.2.2, and yes it's TTF_GetFontSDF(3) β go forth and query responsibly, bestie π«ΆπΈ
π¦ 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