ttfGetFontLineSkip function ttf

int ttfGetFontLineSkip(
  1. Pointer<TtfFont> font
)

Query the spacing between lines of text for a font.

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

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL_ttf 3.0.0.

\sa TTF_SetFontLineSkip

extern SDL_DECLSPEC int SDLCALL TTF_GetFontLineSkip(const TTF_Font *font)

Implementation

int ttfGetFontLineSkip(Pointer<TtfFont> font) {
  final ttfGetFontLineSkipLookupFunction = _libTtf
      .lookupFunction<
        Int32 Function(Pointer<TtfFont> font),
        int Function(Pointer<TtfFont> font)
      >('TTF_GetFontLineSkip');
  return ttfGetFontLineSkipLookupFunction(font);
}