---
name: "TTF_UpdateText"
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_UpdateText"
---

# TTF\_UpdateText(3)

Update the layout of a text object.

## NAME

TTF\_UpdateText - Update the layout of a text object.

## HEADER FILE

Defined in SDL3\_ttf/SDL\_ttf.h

## SYNOPSIS

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

**bool TTF\_UpdateText(TTF\_Text \*text);**

## DESCRIPTION

This is automatically done when the layout is requested or the text is rendered, but you can call this if you need more control over the timing of when the layout and text engine representation are updated.

## FUNCTION PARAMETERS

- *text*

  the  **TTF\_Text**\
    to update.

## RETURN VALUE

Returns true on success or false on failure; call SDL\_GetError() for more information.

## THREAD SAFETY

This function should be called on the thread that created the text.

## AVAILABILITY

This function is available since SDL\_ttf 3.0.0.
