---
name: "TTF_CreateGPUTextEngineWithProperties"
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_CreateGPUTextEngineWithProperties"
---

# TTF\_CreateGPUTextEngineWithProperties(3)

Create a text engine for drawing text with the SDL GPU API, with the specified properties.

## NAME

TTF\_CreateGPUTextEngineWithProperties - Create a text engine for drawing text with the SDL GPU API, with the specified properties.

## HEADER FILE

Defined in SDL3\_ttf/SDL\_ttf.h

## SYNOPSIS

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

**TTF\_TextEngine \* TTF\_CreateGPUTextEngineWithProperties(SDL\_PropertiesID props);** **#define TTF\_PROP\_GPU\_TEXT\_ENGINE\_DEVICE**                   *SDL\_ttf.gpu\_text\_engine.create.device"* **#define TTF\_PROP\_GPU\_TEXT\_ENGINE\_ATLAS\_TEXTURE\_SIZE**       *SDL\_ttf.gpu\_text\_engine.create.atlas\_texture\_size"*

## DESCRIPTION

These are the supported properties:

•  **TTF\_PROP\_GPU\_TEXT\_ENGINE\_DEVICE** : the\
   SDL\_GPUDevice to use for creating textures and drawing text.

•  **TTF\_PROP\_GPU\_TEXT\_ENGINE\_ATLAS\_TEXTURE\_SIZE** :\
   the size of the texture atlas

## FUNCTION PARAMETERS

- *props*

  the properties to use.

## RETURN VALUE

( **TTF\_TextEngine**\
  \*) Returns a

**TTF\_TextEngine**\
  object or NULL on failure; call SDL\_GetError() for more information.

## THREAD SAFETY

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

## AVAILABILITY

This function is available since SDL\_ttf 3.0.0.

## SEE ALSO

**•**(3), [**TTF\_CreateGPUTextEngine**(3)](/TTF_CreateGPUTextEngine/3.md), **•**(3), [**TTF\_DestroyGPUTextEngine**(3)](/TTF_DestroyGPUTextEngine/3.md), **•**(3), [**TTF\_GetGPUTextDrawData**(3)](/TTF_GetGPUTextDrawData/3.md)
