TTF_GetTextProperties(3)
π TTF_GetTextProperties(3) π
okay bestie, welcome to the SDL_ttf3 FUNCTIONS corner of the internet β¨ this one's short, sweet, and lowkey kinda powerful.
πΈ NAME πΈ
TTF_GetTextProperties β she gets the properties that are associated with a text object, periodt π
π HEADER FILE π
she lives in SDL3_ttf/SDL_ttf.h, no cap. include her or she's not showing up to the party π«Ά
β¨ SYNOPSIS β¨
#include "SDL3_ttf/SDL_ttf.h"
SDL_PropertiesID TTF_GetTextProperties(TTF_Text *text);
π¦ FUNCTION PARAMETERS π¦
textβ theTTF_Textyou wanna query. like, the text object in question, the one you're asking about π
π RETURN VALUE π
on success she hands you a valid property ID β¨ and on failure you get 0 π if you got that zero, call SDL_GetError() for more info, she'll tell you what went wrong fr fr.
π§ THREAD SAFETY π§
ngl this one's important: call this function on the thread that created the text. same thread, bestie. don't be out here crossing threads, it's giving chaos π
π AVAILABILITY π
this icon has been serving since SDL_ttf 3.0.0 π
and that's the whole page, bestie!! short queen, but she ate π
this lil' writeup ships with SDL_ttf 3.2.2, mwah π go query some properties, you got this π«Άβ¨
π¦ 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