---
name: "TTF_CreateRendererTextEngineWithProperties"
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_CreateRendererTextEngineWithProperties"
---

# TTF\_CreateRendererTextEngineWithProperties(3)

Create a text engine for drawing text on an SDL renderer, with the specified properties.

## NAME

TTF\_CreateRendererTextEngineWithProperties - Create a text engine for drawing text on an SDL renderer, with the specified properties.

## HEADER FILE

Defined in SDL3\_ttf/SDL\_ttf.h

## SYNOPSIS

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

**TTF\_TextEngine \* TTF\_CreateRendererTextEngineWithProperties(SDL\_PropertiesID props);** **#define TTF\_PROP\_RENDERER\_TEXT\_ENGINE\_RENDERER**                 *SDL\_ttf.renderer\_text\_engine.create.renderer"* **#define TTF\_PROP\_RENDERER\_TEXT\_ENGINE\_ATLAS\_TEXTURE\_SIZE**       *SDL\_ttf.renderer\_text\_engine.create.atlas\_texture\_size"*

## DESCRIPTION

These are the supported properties:

•  **TTF\_PROP\_RENDERER\_TEXT\_ENGINE\_RENDERER** :\
   the renderer to use for creating textures and drawing text

•  **TTF\_PROP\_RENDERER\_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 renderer.

## AVAILABILITY

This function is available since SDL\_ttf 3.0.0.

## SEE ALSO

**•**(3), [**TTF\_CreateRendererTextEngine**(3)](/TTF_CreateRendererTextEngine/3.md), **•**(3), [**TTF\_DestroyRendererTextEngine**(3)](/TTF_DestroyRendererTextEngine/3.md), **•**(3), [**TTF\_DrawRendererText**(3)](/TTF_DrawRendererText/3.md)
