| TTF_GetGlyphMetrics(3) | SDL_ttf3 FUNCTIONS | TTF_GetGlyphMetrics(3) |
TTF_GetGlyphMetrics - Query the metrics (dimensions) of a font's glyph for a UNICODE codepoint.
Defined in SDL3_ttf/SDL_ttf.h
#include "SDL3_ttf/SDL_ttf.h"
bool TTF_GetGlyphMetrics(TTF_Font *font, Uint32 ch, int *minx, int *maxx, int *miny, int *maxy, int *advance);
To understand what these metrics mean, here is a useful link:
https://freetype.sourceforge.net/freetype2/docs/tutorial/step2.html
Returns true on success or false on failure; call SDL_GetError() for more information.
This function should be called on the thread that created the font.
This function is available since SDL_ttf 3.0.0.
| SDL_ttf 3.2.2 | SDL_ttf |