{"id":61430,"library":"sdl3-ttf","title":"SDL3_ttf","description":"A library for rendering TrueType fonts with SDL","status":"active","version":"3.2.2","language":"cpp","source_language":null,"source_url":null,"tags":["sdl","font","rendering","truetype","gui"],"install":[{"cmd":"vcpkg install sdl3-ttf","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(sdl3_ttf CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE SDL3_ttf::SDL3_ttf)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"SDL3_ttf/SDL_ttf.h","correct":"#include <SDL3_ttf/SDL_ttf.h>"}],"quickstart":{"code":"#include <SDL3/SDL.h>\n#include <SDL3_ttf/SDL_ttf.h>\n\nint main() {\n    TTF_Init();\n    TTF_Font* font = TTF_OpenFont(\"font.ttf\", 24);\n    if (font) {\n        TTF_CloseFont(font);\n    }\n    TTF_Quit();\n    return 0;\n}","lang":"c","description":"Initialize SDL_ttf and load a font"},"warnings":[{"fix":"Ensure SDL3::SDL3 is linked and SDL_Init() is called before TTF_Init().","message":"Requires SDL3 to be linked and initialized before use.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'font':8,12 'gui':15 'librari':4 'render':6,13 'sdl':10,11 'sdl3':1 'truetyp':7,14 'ttf':2","created_at":"2026-06-17T04:50:11.685929+00:00","updated_at":"2026-06-17T04:50:11.685929+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}