---
name: "SDL_RenderDebugTextFormat"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_RenderDebugTextFormat"
---

# SDL\_RenderDebugTextFormat(3)

Draw debug text to an SDL\_Renderer .

## NAME

SDL\_RenderDebugTextFormat - Draw debug text to an  **SDL\_Renderer** .

## HEADER FILE

Defined in SDL3/SDL\_render.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**bool SDL\_RenderDebugTextFormat(SDL\_Renderer \*renderer, float x, float y, const char \*fmt, ...);**

## DESCRIPTION

This function will render a printf()-style format string to a renderer. Note that this is a convinence function for debugging, with severe limitations, and is not intended to be used for production apps and games.

For the full list of limitations and other useful information, see

**SDL\_RenderDebugText** .

## FUNCTION PARAMETERS

- *renderer*

  the renderer which should draw the text.

- *x*

  the x coordinate where the top-left corner of the text will draw.

- *y*

  the y coordinate where the top-left corner of the text will draw.

- *fmt*

  the format string to draw.

- *...*

  additional parameters matching % tokens in the **fmt** string, if any.

## RETURN VALUE

Returns true on success or false on failure; call

**SDL\_GetError** () for more information.

## THREAD SAFETY

This function should only be called on the main thread.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_RenderDebugText**(3)](/SDL_RenderDebugText/3.md), **•**(3), [**SDL\_DEBUG\_TEXT\_FONT\_CHARACTER\_SIZE**(3)](/SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE/3.md)
