table of contents
other versions
- unstable 3.1.0+ds-1
- experimental 3~git20250124~a7040ba+ds-1
TTF_GetGlyphScript(3) | SDL_ttf3 FUNCTIONS | TTF_GetGlyphScript(3) |
NAME¶
TTF_GetGlyphScript - Get the script used by a 32-bit codepoint.
HEADER FILE¶
Defined in SDL3_ttf/SDL_ttf.h
SYNOPSIS¶
#include "SDL3_ttf/SDL_ttf.h"
bool TTF_GetGlyphScript(Uint32 ch, char *script, size_t script_size);
DESCRIPTION¶
The supplied script value will be a null-terminated string of exactly four characters.
If SDL_ttf was not built with HarfBuzz support, this function returns false.
FUNCTION PARAMETERS¶
- ch
- the character code to check.
- script
- a pointer filled in with the script used by ch .
- script_size
- the size of the script buffer, which must be at least 5 characters.
RETURN VALUE¶
Returns true on success or false on failure; call SDL_GetError() for more information.
THREAD SAFETY¶
This function should be called on the thread that created the font.
AVAILABILITY¶
This function is available since SDL_ttf 3.0.0.
SDL_ttf 3.1.0 | SDL_ttf |