---
name: "TTF_GetFontDirection"
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_GetFontDirection"
---

# TTF\_GetFontDirection(3)

Get the direction to be used for text shaping by a font.

## NAME

TTF\_GetFontDirection - Get the direction to be used for text shaping by a font.

## HEADER FILE

Defined in SDL3\_ttf/SDL\_ttf.h

## SYNOPSIS

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

**TTF\_Direction TTF\_GetFontDirection(TTF\_Font \*font);**

## DESCRIPTION

This defaults to  **TTF\_DIRECTION\_INVALID**\
  if it hasn't been set.

## FUNCTION PARAMETERS

- *font*

  the font to query.

## RETURN VALUE

( **TTF\_Direction** ) Returns the direction to be used for text shaping.

## 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.
