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 🌈


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