---
name: "TTF_GetFreeTypeVersion"
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_GetFreeTypeVersion"
---

# TTF\_GetFreeTypeVersion(3)

Query the version of the FreeType library in use.

## NAME

TTF\_GetFreeTypeVersion - Query the version of the FreeType library in use.

## HEADER FILE

Defined in SDL3\_ttf/SDL\_ttf.h

## SYNOPSIS

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

**void TTF\_GetFreeTypeVersion(int \*major, int \*minor, int \*patch);**

## DESCRIPTION

**TTF\_Init** () should be called before calling this function.

## FUNCTION PARAMETERS

- *major*

  to be filled in with the major version number. Can be NULL.

- *minor*

  to be filled in with the minor version number. Can be NULL.

- *patch*

  to be filled in with the param version number. Can be NULL.

## THREAD SAFETY

It is safe to call this function from any thread.

## AVAILABILITY

This function is available since SDL\_ttf 3.0.0.

## SEE ALSO

**•**(3), [**TTF\_Init**(3)](/TTF_Init/3.md)
