TTF_RemoveFallbackFont(3)

πŸ’– TTF_RemoveFallbackFont(3) πŸ’–

okay bestie, welcome to the SDL_ttf3 FUNCTIONS corner of the manual, this one's short and sweet and honestly a lil iconic ✨


🌸 NAME 🌸

TTF_RemoveFallbackFont β€” remove a fallback font, that's the whole job, no cap 🫢


πŸŽ€ HEADER FILE πŸŽ€

it lives in SDL3_ttf/SDL_ttf.h β€” that's where you'll find it, defined right there πŸ’…


✨ SYNOPSIS ✨

#include "SDL3_ttf/SDL_ttf.h"

void TTF_RemoveFallbackFont(TTF_Font *font, TTF_Font *fallback);

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically you hand it a font and a fallback, and it takes that fallback out. gone. not the vibe anymore. πŸ™ˆ

and the important part, bestie: this updates any TTF_Text objects using this font. like, the text knows. the text is always watching. πŸ‘€


πŸ’œ FUNCTION PARAMETERS πŸ’œ

  • font β€” the font you're modifying. main character. πŸŽ€
  • fallback β€” the font to remove as a fallback. it's being voted off the island. 😭

🧚 THREAD SAFETY 🧚

call this on the thread that created both fonts. both of them. not one. both. fr fr, don't be messy with this one.

🌈 AVAILABILITY 🌈

this function is available since SDL_ttf 3.0.0 β€” it's been here, it's a veteran, it ate. πŸ‘‘


⭐ SEE ALSO ⭐


and that's the whole page, bestie, you understood it, slay πŸ’…βœ¨

SDL_ttf Β· SDL_ttf 3.2.2 Β· TTF_RemoveFallbackFont(3) β€” mwah, bye, go remove some fallbacks πŸ«ΆπŸ’–πŸ¦‹

πŸ“¦ where this page comes from