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
- 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