---
name: "TTF_SetFontWrapAlignment"
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_SetFontWrapAlignment"
---

# TTF\_SetFontWrapAlignment(3)

Set a font's current wrap alignment option.

## NAME

TTF\_SetFontWrapAlignment - Set a font's current wrap alignment option.

## HEADER FILE

Defined in SDL3\_ttf/SDL\_ttf.h

## SYNOPSIS

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

**void TTF\_SetFontWrapAlignment(TTF\_Font \*font, TTF\_HorizontalAlignment align);**

## DESCRIPTION

This updates any  **TTF\_Text**\
  objects using this font.

## FUNCTION PARAMETERS

- *font*

  the font to set a new wrap alignment option on.

- *align*

  the new wrap alignment option.

## THREAD SAFETY

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

## AVAILABILITY

This function is available since SDL\_ttf 3.0.0.

## SEE ALSO

**•**(3), [**TTF\_GetFontWrapAlignment**(3)](/TTF_GetFontWrapAlignment/3.md)
