TTF_GetFreeTypeVersion(3)
π TTF_GetFreeTypeVersion(3) π
okay bestie, so this is a page from the SDL_ttf3 FUNCTIONS manual, and today's main character is TTF_GetFreeTypeVersion. Let's get into it β¨
πΈ NAME πΈ
TTF_GetFreeTypeVersion β the lil function that lets you query the version of the FreeType library you're currently using. fr, that's it, that's the whole vibe π¦
π HEADER FILE π
It lives in SDL3_ttf/SDL_ttf.h, no cap.
β¨ SYNOPSIS β¨
#include "SDL3_ttf/SDL_ttf.h"
void TTF_GetFreeTypeVersion(int *major, int *minor, int *patch);
look at her. gorgeous. iconic. three lil pointers and she's done π
π DESCRIPTION π
so basically, you gotta call TTF_Init () before you call this function. like, that's the prerequisite, bestie, don't skip it π
π FUNCTION PARAMETERS π
majorβ gets filled in with the major version number. and guess what? it can beNULLπ«minorβ gets filled in with the minor version number. also can beNULLπΈpatchβ gets filled in with the param version number. yep, you heard me, and it can beNULLtoo π
π§ THREAD SAFETY π§
she's safe to call from any thread. multithreaded queen behavior, we love to see it π
π AVAILABILITY π
this one's been around since SDL_ttf 3.0.0, so she's got history β¨
π SEE ALSO π
β’(3)TTF_Init(3)
lowkey important reminder: TTF_Init() first, version query second. that's the order, periodt π
that's the whole page, bestie!! mwah π«Ά this was pulled straight from the SDL_ttf 3.2.2 manual β stay slaying, and may your pointers never be NULL unless you want them to be πππ
π¦ 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