SDL_TFF UTF8 codepoint checking

In SDL_ttf.c:

int TTF_GlyphIsProvided(const TTF_Font *font, Uint16 ch)
    return FT_Get_Char_Index(font->face, ch);

The half of a Uint32 codepoint is being sliced off by converting to Uint16.

Can we have a “TTF_GlyphIsProvided32(const TTF_Font *font, Uint32 codepoint)” added to SDL_TFF? This will be very useful for determining if a font has a character and switching to another font if its missing.


It was added recently, but your need the latest source version

Excellent, cheers mate!