ttfGetTextScript function ttf
Get the script used for text shaping a text object.
This defaults to the script of the font used by the text object.
\param text the text to query. \returns an ISO 15924 code or 0 if a script hasn't been set on either the text object or the font.
\threadsafety This function should be called on the thread that created the text.
\since This function is available since SDL_ttf 3.0.0.
\sa TTF_TagToString
extern SDL_DECLSPEC Uint32 SDLCALL TTF_GetTextScript(TTF_Text *text)
Implementation
int ttfGetTextScript(Pointer<TtfText> text) {
final ttfGetTextScriptLookupFunction = _libTtf
.lookupFunction<
Uint32 Function(Pointer<TtfText> text),
int Function(Pointer<TtfText> text)
>('TTF_GetTextScript');
return ttfGetTextScriptLookupFunction(text);
}