TTF_GetGlyphImage - Get the pixel image for a UNICODE codepoint.
Contents
Availability
This function is available since SDL_ttf 3.0.0.
SDL_ttf SDL_ttf 3.2.2 TTF_GetGlyphImage(3)
Function Parameters
font the font to query.
ch the codepoint to check.
image_type
a pointer filled in with the glyph image type, may be NULL.
Header File
Defined in SDL3_ttf/SDL_ttf.h
Name
TTF_GetGlyphImage - Get the pixel image for a UNICODE codepoint.
Return Value
Returns an SDL_Surface containing the glyph, or NULL on failure; call SDL_GetError() for more
information.
Synopsis
#include"SDL3_ttf/SDL_ttf.h"SDL_Surface*TTF_GetGlyphImage(TTF_Font*font,Uint32ch,TTF_ImageType*image_type);
Thread Safety
This function should be called on the thread that created the font.
