TTF_GetFontDirection(3)
β¨ TTF_GetFontDirection β¨
okay bestie, welcome to the SDL_ttf3 functions corner of the manual, this one's a little cutie called TTF_GetFontDirection π
π NAME π
TTF_GetFontDirection β get the direction to be used for text shaping by a font. no cap, that's literally its whole job π¦
πΈ HEADER FILE πΈ
it lives in SDL3_ttf/SDL_ttf.h, so that's where you go looking when you need it π
β¨ SYNOPSIS β¨
#include "SDL3_ttf/SDL_ttf.h"
TTF_Direction TTF_GetFontDirection(TTF_Font *font);
π¦ DESCRIPTION π¦
so like, this hands you back the direction that's gonna be used for text shaping by that font.
and if nobody ever set one? it defaults to TTF_DIRECTION_INVALID π that's the fallback, that's what you get, no surprises.
π«Ά FUNCTION PARAMETERS π«Ά
fontβ the font to query. yes queen, just hand over the font and let her spill the tea π
π RETURN VALUE π
returns a ( TTF_Direction ) β the direction to be used for text shaping. that's it, that's the whole vibe β¨
π₯ THREAD SAFETY π₯
this function should be called on the thread that created the font. like, same thread, bestie, don't be sneaky about it π
π AVAILABILITY π
this one's been around since SDL_ttf 3.0.0, so it's basically iconic at this point π
and that's the whole page, mwah π go shape some text, you're doing amazing sweetie π§
this was brought to you by SDL_ttf, version SDL_ttf 3.2.2 β catch you in the next manpage, bestie ππ
π¦ 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