ttfGetFontKerningSizeGlyphs32 function
Query the kerning size of two 32-bit glyphs.
This is the same as TTF_GetFontKerningSizeGlyphs(), but takes 32-bit characters instead of 16-bit, and thus can manage a larger range. If you are sure you'll have an SDL_ttf that's version 2.0.18 or newer, there's no reason not to use this function exclusively.
\param font the font to query. \param previous_ch the previous character's code, 32 bits. \param ch the current character's code, 32 bits. \returns The kerning size between the two specified characters, in pixels, or -1 on error.
\since This function is available since SDL_ttf 2.0.18.
extern DECLSPEC int TTF_GetFontKerningSizeGlyphs32(TTF_Font *font, Uint32 previous_ch, Uint32 ch)
Implementation
int ttfGetFontKerningSizeGlyphs32(
Pointer<TtfFont> font, int previousCh, int ch) {
final ttfGetFontKerningSizeGlyphs32LookupFunction = libSdl2Ttf.lookupFunction<
Int32 Function(Pointer<TtfFont> font, Uint32 previousCh, Uint32 ch),
int Function(Pointer<TtfFont> font, int previousCh,
int ch)>('TTF_GetFontKerningSizeGlyphs32');
return ttfGetFontKerningSizeGlyphs32LookupFunction(font, previousCh, ch);
}