ttfFontLineSkip function

int ttfFontLineSkip(
  1. Pointer<TtfFont> font
)

Query the recommended spacing between lines of text for a font.

\param font the font to query. \returns the font's recommended spacing.

\since This function is available since SDL_ttf 2.0.12.

extern DECLSPEC int SDLCALL TTF_FontLineSkip(const TTF_Font *font)

Implementation

int ttfFontLineSkip(Pointer<TtfFont> font) {
  final ttfFontLineSkipLookupFunction = libSdl2Ttf.lookupFunction<
      Int32 Function(Pointer<TtfFont> font),
      int Function(Pointer<TtfFont> font)>('TTF_FontLineSkip');
  return ttfFontLineSkipLookupFunction(font);
}