TTF_Init(3)

TTF_Init3

Initialize sdl_ttf.

Usage

#include "SDL3_ttf/SDL_ttf.h"

bool TTF_Init(void);

Header file

Defined in SDL3_ttf/SDL_ttf.h

Overview

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.

Return value

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

Availability

This function is available since SDL_ttf 3.0.0.

From libsdl3-ttf-doc 3.2.2+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.