getGlyphScript static method

int getGlyphScript(
  1. int ch
)

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)

{@category ttf}

Implementation

static int getGlyphScript(int ch) => ttfGetGlyphScript(ch);