TTF_GetFontWrapAlignment(3)

πŸ’– TTF_GetFontWrapAlignment(3) πŸ’–

okay so bestie, you've landed on TTF_GetFontWrapAlignment from the SDL_ttf3 FUNCTIONS zone, and she is here to tell you one very specific thing: what wrap alignment your font is currently rocking. No cap, that's the whole vibe. πŸ¦‹


🌸 NAME 🌸

TTF_GetFontWrapAlignment β€” Query a font's current wrap alignment option.

πŸ“ HEADER FILE πŸ“

Defined in SDL3_ttf/SDL_ttf.h

✨ SYNOPSIS ✨

#include "SDL3_ttf/SDL_ttf.h"

TTF_HorizontalAlignment TTF_GetFontWrapAlignment(const TTF_Font *font);

🫢 FUNCTION PARAMETERS 🫢

  • font β€” the font to query. Like, the one you're side-eyeing for answers. πŸ‘€

πŸ’… RETURN VALUE πŸ’…

( TTF_HorizontalAlignment ) β€” Returns the font's current wrap alignment option. That's it, that's the tea. She's handing you back the alignment setting, periodt.

🧡 THREAD SAFETY 🧡

It is safe to call this function from any thread. So yes, your multithreaded besties can all ask at once, and nobody's gonna fight. πŸ”₯

⭐ AVAILABILITY ⭐

This function is available since SDL_ttf 3.0.0. She's been iconic since 3.0.0, fr fr.

πŸ‘‘ SEE ALSO πŸ‘‘

You also gotta go read β€’(3), TTF_SetFontWrapAlignment(3) β€” iykyk, the setter is right there waiting for you. πŸŽ€


Mwah πŸ’‹ β€” this cutie came from the SDL_ttf 3.2.2 manual, page TTF_GetFontWrapAlignment(3). The footer didn't bring a date, but it did bring immaculate alignment energy. Stay wrapped, stay slay! βœ¨πŸ’–

πŸ“¦ where this page comes from