Scroll to navigation

TTF_GlyphIsProvided32(3) SDL_ttf3 FUNCTIONS TTF_GlyphIsProvided32(3)

NAME

TTF_GlyphIsProvided32 - Check whether a glyph is provided by the font for a 32-bit codepoint.

SYNOPSIS

#include "SDL3_ttf/SDL_ttf.h"
int TTF_GlyphIsProvided32(TTF_Font *font, Uint32 ch);

DESCRIPTION

This is the same as TTF_GlyphIsProvided (), but takes a 32-bit character instead of 16-bit, and thus can query a larger range. If you are sure you'll have an SDL_ttf that's version 2.0.18 or newer, there's no reason not to use this function exclusively.

FUNCTION PARAMETERS

the font to query.
the character code to check.

RETURN VALUE

Returns non-zero if font provides a glyph for this character, zero if not.

AVAILABILITY

This function is available since SDL_ttf 3.0.0.

SDL_ttf 3.0.0 SDL_ttf