Skip to content

Commit c5fd639

Browse files
committed
Add definition for TTF_SetFontLineSkip()
1 parent 868741c commit c5fd639

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

units/sdl2_ttf.pas

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,17 @@ function TTF_FontDescent(font: PTTF_Font): cint; cdecl;
680680
function TTF_FontLineSkip(font: PTTF_Font): cint; cdecl;
681681
external TTF_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_TTF_FontLineSkip' {$ENDIF} {$ENDIF};
682682

683+
{**
684+
* Set the spacing between lines of text for a font.
685+
*
686+
* \param font the font to modify.
687+
* \param lineskip the new line spacing for the font.
688+
*
689+
* \since This function is available since SDL_ttf 2.22.0.
690+
*}
691+
procedure TTF_SetFontLineSkip(font: PTTF_Font; lineskip: cint); cdecl;
692+
external TTF_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_TTF_SetFontLineSkip' {$ENDIF} {$ENDIF};
693+
683694
{*
684695
* Query whether or not kerning is allowed for a font.
685696
*

0 commit comments

Comments
 (0)