# Text

## Introduction

The text object can be used to display written information. The text object supports:

* Horizontal and Vertical alignment
* Text wrapping
* Fonts from the installed font library on your machine
* Custom fonts using Bitmap Font Generator: <http://www.angelcode.com/products/bmfont/>
* Scaling independent of source font
* BBCode-style inline formatting

### Text Wrapping

Texts wrap their contained words based on their dimensions. Whether a text wraps ultimately depends on whether the Text's `Width Units` is `Relative To Children`.

The following animation shows text wrapping on a text which is using an `Absolute` `Width Units`.

<figure><img src="/files/rZd4OaaIflzK8Vv7FP1T" alt=""><figcaption><p>Resizing a Text causes it to wrap</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flatredball.com/gum/gum-tool/gum-elements/text.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
