ttfGetGlyphScript function ttf
Get the script used by a 32-bit codepoint.
\param ch the character code to check. \returns an ISO 15924 code on success, or 0 on failure; call SDL_GetError() for more information.
\threadsafety This function is thread-safe.
\since This function is available since SDL_ttf 3.0.0.
\sa TTF_TagToString
extern SDL_DECLSPEC Uint32 SDLCALL TTF_GetGlyphScript(Uint32 ch)
Implementation
int ttfGetGlyphScript(int ch) {
final ttfGetGlyphScriptLookupFunction = _libTtf
.lookupFunction<Uint32 Function(Uint32 ch), int Function(int ch)>(
'TTF_GetGlyphScript',
);
return ttfGetGlyphScriptLookupFunction(ch);
}