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_GetGlyphKerning - Query the kerning size between the glyphs of two UNICODE codepoints.

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.

See Also