TTF_GetFontKerning(3)

✨ TTF_GetFontKerning ✨

okay bestie, so this is a lil page from the SDL_ttf manual β€” it's TTF_GetFontKerning(3), and it's literally just the "hey, is kerning on or not" checker πŸ’…


🌸 NAME 🌸

TTF_GetFontKerning β€” the way you ask a font "bestie, is kerning enabled or not?" 🫢


πŸ“ HEADER FILE πŸ“

It lives in SDL3_ttf/SDL_ttf.h β€” that's your home base, don't lose it πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include "SDL3_ttf/SDL_ttf.h"

bool TTF_GetFontKerning(const TTF_Font *font);

πŸ“ FUNCTION PARAMETERS πŸ“

  • font β€” the font you're interrogating. the one getting the vibe check πŸ‘‘

⭐ RETURN VALUE ⭐

It hands you back true if kerning is enabled, and false if it isn't. that's it, that's the whole tea β˜•


🧚 THREAD SAFETY 🧚

fr fr, you can call this from any thread. it's safe everywhere, no cap. 🌈


πŸŽ€ AVAILABILITY πŸŽ€

This one's been around since SDL_ttf 3.0.0 β€” so she's not new here, she's iconic. πŸ‘‘


πŸ‘€ SEE ALSO πŸ‘€

lowkey if you want to change the kerning instead of just peeking at it, that's TTF_SetFontKerning(3)'s whole job πŸ’–

and that's the page!! thanks for reading bestie, go forth and kern responsibly πŸ¦‹βœ¨

this was brought to you by the SDL_ttf manual, version SDL_ttf 3.2.2 β€” mwah, bye πŸ’…πŸ’œ

πŸ“¦ where this page comes from