---
name: "TTF_GetTextProperties"
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_GetTextProperties"
---

# TTF\_GetTextProperties(3)

Get the properties associated with a text object.

## NAME

TTF\_GetTextProperties - Get the properties associated with a text object.

## HEADER FILE

Defined in SDL3\_ttf/SDL\_ttf.h

## SYNOPSIS

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

**SDL\_PropertiesID TTF\_GetTextProperties(TTF\_Text \*text);**

## FUNCTION PARAMETERS

- *text*

  the  **TTF\_Text**\
    to query.

## RETURN VALUE

Returns a valid property ID on success or 0 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.
