TTF_GetFontLineSkip(3)
okay so bestie, we're reading TTF_GetFontLineSkip(3) from the SDL_ttf3 FUNCTIONS manual, and it's literally the main character of "how much space goes between my lines??" energy. π
πΈ NAME πΈ
TTF_GetFontLineSkip β queries the spacing between lines of text for a font. So like, you hand it a font and it tells you the line-skip tea. β¨
π HEADER FILE π
Defined in SDL3_ttf/SDL_ttf.h. That's where this baddie lives, no cap. π¦
π¦ SYNOPSIS π¦
#include "SDL3_ttf/SDL_ttf.h"
int TTF_GetFontLineSkip(const TTF_Font *font);
π FUNCTION PARAMETERS π
fontβ the font to query. Like, the font you're asking for the line spacing, bestie. π«Ά
β RETURN VALUE β
Returns the font's recommended spacing. So it gives you back that recommended spacing number, periodt. π
π₯ THREAD SAFETY π₯
It is safe to call this function from any thread. fr fr, any thread, go off. π
π AVAILABILITY π
This function is available since SDL_ttf 3.0.0. So if you're on that version, you're golden. π
π SEE ALSO π
β’(3),TTF_SetFontLineSkip(3)β the SEE ALSO squad π«Ά
SDL_ttf β that's the source, bestie. Version SDL_ttf 3.2.2. No date on this page, just vibes. Mwah π
π¦ where this page comes from
- debian trixie: libsdl3-ttf-doc 3.2.2+ds-1 Β· Zlib
- fedora 43: SDL3_ttf-devel 3.2.2-2.fc43 Β· Zlib AND MIT
- fedora 43: SDL3_ttf-devel 3.2.2-2.fc43 Β· Zlib AND MIT
- fedora 44: SDL3_ttf-devel 3.2.2-4.fc44 Β· Zlib AND MIT
- fedora 44: SDL3_ttf-devel 3.2.2-4.fc44 Β· Zlib AND MIT
- ubuntu questing: libsdl3-ttf-doc 3.2.2+ds-1
- ubuntu resolute: libsdl3-ttf-doc 3.2.2+ds-1build1 Β· Zlib
- ubuntu stonking: libsdl3-ttf-doc 3.2.2+ds-2 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms