Registry / other / sdl3-ttf

sdl3-ttf

JSON →
library3.2.2vcpkgunverified

A library for rendering TrueType fonts with SDL

vcpkg install sdl3-ttf
INSTALL
IMPORT
SIG · SDL3-TTF
S
sdl3-ttf
othercppv3.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SDL3_ttf/SDL_ttf.h
✓ #include <SDL3_ttf/SDL_ttf.h>

Initialize SDL_ttf and load a font

#include <SDL3/SDL.h> #include <SDL3_ttf/SDL_ttf.h> int main() { TTF_Init(); TTF_Font* font = TTF_OpenFont("font.ttf", 24); if (font) { TTF_CloseFont(font); } TTF_Quit(); return 0; }
Debug
Known issues
gotchaRequires SDL3 to be linked and initialized before use.
fix
Ensure SDL3::SDL3 is linked and SDL_Init() is called before TTF_Init().
affects: *
Upgrade
Version history
3.2.2latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources

No resource links recorded.

sdl3-ttf — pip install sdl3-ttf · libregistry