> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/pba-report-designer/style-properties-reference/text-styles.md).

# Text styles

**Text** styles control the font and font properties pertaining to the text of the selected element.

**Note:** For elements that control colors, possible values are standard HTML color names (red, blue, green, black, etc.) or hexadecimal color values (#000000, #FFFFFF, #CCFF00, etc.)

| Property Name       | Data Type | Purpose                                                                                                         |
| ------------------- | --------- | --------------------------------------------------------------------------------------------------------------- |
| **h-align**         | Selection | Horizontally aligns the selected content within this element                                                    |
| **v-align**         | Selection | Vertically aligns the selected content within this element                                                      |
| **v-align-in-band** | Selection | An extended text-alignment that allows fine control on how **inline-text** is aligned within a line             |
| **text-wrap**       | Boolean   | A flag indicating whether text will automatically wrap at the end of the line                                   |
| **text-color**      | Selection | The text (foreground) color.                                                                                    |
| **bg-color**        | Selection | The element's background color.                                                                                 |
| **line-height**     | Integer   | Defines the height of a single text line. Is always greater or equal to the font size                           |
| **overflow-text**   | String    | A text quote that is printed if the given text does not fully fit into the element bound                        |
| **trim**            | Boolean   | A flag indicating whether leading and trailing white spaces will be removed                                     |
| **trim-whitespace** | Selection | Controls how the renderer treats white spaces                                                                   |
| **bg-ext**          | String    | An extended foreground paint **property. Expert** option                                                        |
| **encoding**        | Boolean   | Specifies the target **text-encoding** for the given field, in case the output supports **per-field** encodings |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.pentaho.com/pba-report-designer/style-properties-reference/text-styles.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
