---
name: "gui_textout_ex"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/gui_textout_ex/3alleg4"
---

# gui\_textout\_ex(3alleg4)

Draws a text string onto the screen with keyboard shortcut underbars. Allegro game programming library.

## NAME

gui\_textout\_ex - Draws a text string onto the screen with keyboard shortcut underbars. Allegro game programming library.

## SYNOPSIS

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

**int gui\_textout\_ex(BITMAP \*bmp, const char \*s, int x, y, color, bg, centre);**

## DESCRIPTION

Helper function for use by the GUI routines. Draws a text string onto the  screen, interpreting the '&' character as an underbar for displaying  keyboard shortcuts. Returns the width of the output string in pixels.

## SEE ALSO

**gui\_strlen**(3alleg4)
