TTF_GetGlyphKerning - Query the kerning size between the glyphs of two UNICODE codepoints.
Contents
Availability
This function is available since SDL_ttf 3.0.0.
SDL_ttf SDL_ttf 3.2.2 TTF_GetGlyphKerning(3)
Function Parameters
font the font to query.
previous_ch
the previous codepoint.
ch the current codepoint.
kerning
a pointer filled in with the kerning size between the two glyphs, in pixels, may be NULL.
Header File
Defined in SDL3_ttf/SDL_ttf.h
Name
TTF_GetGlyphKerning - Query the kerning size between the glyphs of two UNICODE codepoints.
Return Value
Returns true on success or false on failure; call SDL_GetError() for more information.
Synopsis
#include"SDL3_ttf/SDL_ttf.h"boolTTF_GetGlyphKerning(TTF_Font*font,Uint32previous_ch,Uint32ch,int*kerning);
Thread Safety
This function should be called on the thread that created the font.
