TTF_FontHasGlyph(3)

πŸ’– TTF_FontHasGlyph(3) πŸ’–

okay bestie, welcome to the SDL_ttf3 FUNCTIONS corner of the manual, where today's main character is TTF_FontHasGlyph πŸ’…


✨ NAME ✨

TTF_FontHasGlyph β€” check whether a glyph is provided by the font for a UNICODE codepoint πŸ¦‹


πŸ“ HEADER FILE πŸ“

Defined in SDL3_ttf/SDL_ttf.h


🌸 SYNOPSIS 🌸

#include "SDL3_ttf/SDL_ttf.h"

bool TTF_FontHasGlyph(TTF_Font *font, Uint32 ch);

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • font β€” the font to query πŸ” like, the font you're asking about, bestie.
  • ch β€” the codepoint to check ✨ the actual character number you want the tea on.

πŸ‘‘ RETURN VALUE πŸ‘‘

Returns true if font provides a glyph for this character, false if not 🫢

no cap, that's the whole vibe check: does the font got the glyph or not.

🧡 THREAD SAFETY 🧡

This function should be called on the thread that created the font 😭 like, don't be texting this font from a whole other thread, it's giving "only the thread that birthed it gets to talk to it" energy.


🌈 AVAILABILITY 🌈

This function is available since SDL_ttf 3.0.0 ⭐


and that's the whole page, bestie!! πŸ’œ This little icon was brought to you by SDL_ttf, version SDL_ttf 3.2.2 πŸŽ€ go forth and check your glyphs, you absolute queen πŸ‘‘βœ¨

πŸ“¦ where this page comes from