---
name: "d_ctext_proc"
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/d_text_proc/3alleg4"
---

# d\_ctext\_proc(3alleg4)

Dialogs procedure drawing text onto the screen. Allegro game programming library.

Part of [d\_text\_proc(3alleg4)](/d_text_proc/3alleg4.md).

## NAME

d\_text\_proc, d\_ctext\_proc, d\_rtext\_proc - Dialogs procedure drawing text onto the screen. Allegro game programming library.

## SYNOPSIS

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

**int d\_text\_proc(int msg, DIALOG \*d, int c);**

**int d\_ctext\_proc(int msg, DIALOG \*d, int c);**

**int d\_rtext\_proc(int msg, DIALOG \*d, int c);**

## DESCRIPTION

These draw text onto the screen. The dp field should point to the string  to display. d\_ctext\_proc() centers the string horizontally, and d\_rtext\_proc() right aligns it. Any '&' characters in the string will  be replaced with lines underneath the following character, for displaying  keyboard shortcuts (as in MS Windows). To display a single ampersand, put  "&&". To draw the text in something other than the default font, set the  dp2 field to point to your custom font data.

## SEE ALSO

**exgui**(3alleg4), **exrgbhsv**(3alleg4)
