---
name: "TTF_Init"
section: "3"
platform: "linux"
package: "libsdl3-ttf-doc"
version: "3.2.2+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/TTF_Init"
---

# TTF\_Init(3)

Initialize SDL\_ttf.

## NAME

TTF\_Init - Initialize SDL\_ttf.

## HEADER FILE

Defined in SDL3\_ttf/SDL\_ttf.h

## SYNOPSIS

```
#include "SDL3_ttf/SDL_ttf.h"
```

**bool TTF\_Init(void);**

## DESCRIPTION

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.

## SEE ALSO

**•**(3), [**TTF\_Quit**(3)](/TTF_Quit/3.md)
