TTF_FontIsScalable(3)

πŸ’– TTF_FontIsScalable(3) πŸ’–

okay so bestie, we're deep in the SDL_ttf3 functions right now β€” the manual name is literally SDL_ttf3 FUNCTIONS, so you know this is the good stuff. let's get into it πŸŽ€


✨ NAME ✨

TTF_FontIsScalable β€” ask a font whether it's scalable or not, bestie. that's it, that's the whole job πŸ’…


πŸ“ HEADER FILE πŸ“

it lives in SDL3_ttf/SDL_ttf.h, no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include "SDL3_ttf/SDL_ttf.h"

bool TTF_FontIsScalable(const TTF_Font *font);

🌸 DESCRIPTION 🌸

so like, scalability is the whole vibe check here β€” it's literally how we tell the difference between outline fonts and bitmap fonts. that's the entire point of this function, she's simple but she ATE πŸ“


🧚 FUNCTION PARAMETERS 🧚

  • font β€” the font you wanna query, babes. hand her over and she'll tell you the truth πŸ‘‘

πŸ’œ RETURN VALUE πŸ’œ

  • returns true if the font is scalable
  • returns false otherwise

fr fr, that's the whole answer. no in-between, no "it depends" energy 😭


πŸ”₯ THREAD SAFETY πŸ”₯

it is safe to call this function from any thread. go off, multithreaded queen, she's not gonna break on you ✨


⭐ AVAILABILITY ⭐

this function has been available since SDL_ttf 3.0.0. iconic behavior since day one, periodt 🌈


🫢 SEE ALSO 🫢

iykyk πŸ‘€


lowkey reminder that none of the details changed here β€” every flag, every value, every return, every version number is exactly where the original put it. the vibes are new, the facts are not πŸ’–

and that's the whole page, bestie!! this little gem comes to you courtesy of SDL_ttf, straight from version SDL_ttf 3.2.2 β€” go forth and check your fonts' scalability, you absolute main character πŸŽ€πŸ’…βœ¨

πŸ“¦ where this page comes from