---
name: "textout_right_ex"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/textout_right_ex"
---

# textout\_right\_ex(3alleg)

Writes a right aligned string on a bitmap. Allegro game programming library.

## NAME

textout\_right\_ex - Writes a right aligned string on a bitmap. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void textout\_right\_ex(BITMAP \*bmp, const FONT \*f, const char \*s,** **int x, int y, int color, int bg);**

## DESCRIPTION

Like textout\_ex(), but interprets the x coordinate as the right rather than the left edge of the string. Example:

```
   textout_right_ex(screen, font, "Look at this color!",
                    SCREEN_W - 10, 10, my_yellow, -1);
```

## SEE ALSO

[**textout\_ex**(3alleg)](/textout_ex/3alleg.md), [**textprintf\_right\_ex**(3alleg)](/textprintf_right_ex/3alleg.md)
