getGlyphKerning method

bool getGlyphKerning(
  1. int previousCh,
  2. int ch,
  3. Pointer<Int32> kerning
)

Query the kerning size between the glyphs of two UNICODE codepoints.

\param font the font to query. \param previous_ch the previous codepoint. \param ch the current codepoint. \param kerning a pointer filled in with the kerning size between the two glyphs, in pixels, may be NULL. \returns true on success or false on failure; call SDL_GetError() for more information.

\threadsafety This function should be called on the thread that created the font.

\since This function is available since SDL_ttf 3.0.0.

extern SDL_DECLSPEC bool TTF_GetGlyphKerning(TTF_Font *font, Uint32 previous_ch, Uint32 ch, int *kerning)

Implementation

bool getGlyphKerning(int previousCh, int ch, Pointer<Int32> kerning) {
  return ttfGetGlyphKerning(this, previousCh, ch, kerning);
}