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

# TTF\_Text(3type)

Text created with TTF\_CreateText ()

## NAME

TTF\_Text - Text created with  **TTF\_CreateText** ()

## HEADER FILE

Defined in SDL3\_ttf/SDL\_ttf.h

## SYNOPSIS

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

**typedef struct TTF\_Text** **{**     **char \*text;             /\*\*\< A copy of the UTF-8 string that this text object represents, useful for layout, debugging and retrieving substring text. This is updated when the text object is modified and will be freed automatically when the object is destroyed. \*/**     **int num\_lines;          /\*\*\< The number of lines in the text, 0 if it's empty \*/**     **int refcount;           /\*\*\< Application reference count, used when freeing surface \*/**     **TTF\_TextData \*internal; /\*\*\< Private \*/** **} TTF\_Text;**

## AVAILABILITY

This struct is available since SDL\_ttf 3.0.0.

## SEE ALSO

**•**(3), [**TTF\_CreateText**(3)](/TTF_CreateText/3.md), **•**(3), [**TTF\_GetTextProperties**(3)](/TTF_GetTextProperties/3.md), **•**(3), [**TTF\_DestroyText**(3)](/TTF_DestroyText/3.md)
