# Druid Rich Text
## Links
[Rich Text API here](https://insality.github.io/druid/modules/RichText.html)
## Overview
## Setup
Rich Text requires the next GUI Node scheme:
```bash
root
├── text_prefab
└── node_prefab
```
or make the copy of `/druid/custom/rich_text/rich_text.gui` and adjust your default settings
Create Rich Text:
```lua
local RichText = require("druid.custom.rich_text.rich_text")
function init(self)
self.druid = druid.new(self)
self.rich_text = self.druid:new(RichText, "template_name")
self.rich_text:set_text("Insert your text here")
end
```
## Usage
| Tag | Description | Example |
|---------|------------------------------------------------|---------------------------------------------|
| a | Create a "hyperlink" that generates a message | `Foobar` |
| | when clicked (see `richtext.on_click`) | |
| br | Insert a line break (see notes on linebreak) | `
` |
| color | Change text color | `Foobar` |
| | | `Foobar` |
| | | `Foobar` |
| | | `Foobar` |
| shadow | Change text shadow | `Foobar` |
| | | `Foobar` |
| | | `Foobar` |
| | | `Foobar` |
| outline | Change text shadow | `Foobar` |
| | | `Foobar` |
| | | `Foobar` |
| | | `Foobar` |
| font | Change font | `Foobar` |
| img | Display image | `
` |
| | Display image in fixed square | `
` |
| | Display image in fixed rectangle | `
` |
| nobr | Prevent the text from breaking | `Words inside tag won't break` |
| size | Change text size, relative to default size | `Twice as large` |
## Usecases
## Notes