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