DOKK / manpages / debian 13 / libsdl3-ttf-doc / TTF_Init.3.en
TTF_Init(3) SDL_ttf3 FUNCTIONS TTF_Init(3)

TTF_Init - Initialize SDL_ttf.

Defined in SDL3_ttf/SDL_ttf.h

#include "SDL3_ttf/SDL_ttf.h"
bool TTF_Init(void);

You must successfully call this function before it is safe to call any other function in this library.

It is safe to call this more than once, and each successful

TTF_Init () call should be paired with a matching

TTF_Quit () call.

Returns true on success or false on failure; call SDL_GetError() for more information.

This function is available since SDL_ttf 3.0.0.

(3), TTF_Quit(3)

SDL_ttf 3.2.2 SDL_ttf