ttfGetFontKerning function

int ttfGetFontKerning(
  1. Pointer<TtfFont> font
)

Query whether or not kerning is allowed for a font.

\param font the font to query. \returns non-zero if kerning is enabled, zero otherwise.

\since This function is available since SDL_ttf 2.0.12.

extern DECLSPEC int SDLCALL TTF_GetFontKerning(const TTF_Font *font)

Implementation

int ttfGetFontKerning(Pointer<TtfFont> font) {
  final ttfGetFontKerningLookupFunction = libSdl2Ttf.lookupFunction<
      Int32 Function(Pointer<TtfFont> font),
      int Function(Pointer<TtfFont> font)>('TTF_GetFontKerning');
  return ttfGetFontKerningLookupFunction(font);
}