46.1 Overview

Text class allows generating objects that contain some kind of text. You can control the outfit of your text with some special control characters, including italics, bold, underline and color codes. Format codes align text either left, centered or right, linefeeds allow multiline text fields.

Please note that text class does not offer automatic word wrapping. If you want to have on-the-fly word wrapping, you have to use floattext class instead. See Floattext for details.

Here is an example of how to use the <text> command:

<text>Hello World</text>

Here is the same example in bold:

<text>\33bHello World</text>

The string you specify here can use text formatting codes. See Text formatting codes for details.

Show TOC