logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TTF_FontHasGlyph - Check whether a glyph is provided by the font for a UNICODE codepoint.

Availability

       This function is available since SDL_ttf 3.0.0.

SDL_ttf                                           SDL_ttf 3.2.2                              TTF_FontHasGlyph(3)

Function Parameters

font   the font to query.

       ch     the codepoint to check.

Header File

       Defined in SDL3_ttf/SDL_ttf.h

Name

       TTF_FontHasGlyph - Check whether a glyph is provided by the font for a UNICODE codepoint.

Return Value

       Returns true if font provides a glyph for this character, false if not.

Synopsis

#include"SDL3_ttf/SDL_ttf.h"boolTTF_FontHasGlyph(TTF_Font*font,Uint32ch);

Thread Safety

       This function should be called on the thread that created the font.

See Also