table of contents
TTF_GlyphIsProvided(3) | SDL_ttf3 FUNCTIONS | TTF_GlyphIsProvided(3) |
NAME¶
TTF_GlyphIsProvided - Check whether a glyph is provided by the font for a 16-bit codepoint.
HEADER FILE¶
Defined in SDL3_ttf/SDL_ttf.h
SYNOPSIS¶
#include "SDL3_ttf/SDL_ttf.h"
SDL_bool TTF_GlyphIsProvided(TTF_Font *font, Uint16 ch);
DESCRIPTION¶
Note that this version of the function takes a 16-bit character code, which covers the Basic Multilingual Plane, but is insufficient to cover the entire set of possible Unicode values, including emoji glyphs. You should use TTF_GlyphIsProvided32 () instead, which offers the same functionality but takes a 32-bit codepoint instead.
The only reason to use this function is that it was available since the beginning of time, more or less.
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns SDL_TRUE if font provides a glyph for this character, SDL_FALSE if not.
AVAILABILITY¶
This function is available since SDL_ttf 3.0.0.
SEE ALSO¶
•(3), TTF_GlyphIsProvided32(3)
SDL_ttf 3.0.0 | SDL_ttf |