Rasagar/Library/PackageCache/com.unity.ugui/Documentation~/TextMeshPro/RichTextVOffset.md

17 lines
619 B
Markdown
Raw Normal View History

2024-08-26 13:07:20 -07:00
# Vertical Offset
Use the `<voffset>` tag to offset the text baseline vertically. This adjusts the line height accordingly to accommodate the text's offset position. You can compensate for that adjustment by manually adjusting the line height.
Specify the offset in pixels or font units. The offset is always relative to the original baseline.
The `</voffset>` closing tag resets the baseline back to its original position.
**Example:**
```
Up <voffset=1em>up <voffset=2em>UP</voffset> and <voffset=-0.5em>down</voffset> we go again.
```
![Example image](../images/TMP_RichTextVOffset.png)<br/>
_Vertical offset_