Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Supported Rich Text Tags

The following table is a quick reference of supported rich text tags. For details, see the main pages for specific
tags.

Tag: Description: Notes:

<align> Changes the text's horizontal


alignment.

<allcaps> Converts text to uppercase Functionally identical to <uppercase>.


before rendering.

<alpha> Changes text opacity.

<b> Renders text in boldface.

<br> Forces a line break in text.

<color> Changes text color or color and


opacity.

<cspace> Changes spacing between


characters.

<font> Changes text font and,


optionally, material.

<font-weight> Changes the text's font weight to


any of the weights defined in
the font Asset.

<gradient> Applies a gradient preset to text.

<i> Renders text in italics.

<indent> Indents all text between the tag


and the next hard line break.

<line-height> Modifies the line height relative


to the default line height
specified in the font Asset.

<line-indent> Indents the first line after every New lines created by word-wrapping are not indented.
hard line break.
Tag: Description: Notes:

<link> Specifies a link ID for a text


segment.

<lowercase> Converts text to lowercase


before rendering.

<margin> Gives the text horizontal You can set margins for both sides together or each
margins. side individually

<mark> Highlights the text with a The overlay must be translucent (alpha less than 1) for
colored overlay. the text to show through.

<mspace> Renders the text as monospace.

<nobr> Keeps a segment of text


together.

<noparse> Prevents parsing of text that


TextMesh Pro would normally
interpret as rich text tags.

<page> Adds a page break to the text. The text's Overflow mode must be set to Page for
page breaks to work.

<pos> Sets the horizontal caret position


on the current line.

<rotate> Rotates each character about its


center.

<s> Renders a line across the text.

<size> Adjusts the font size for a


specified portion of the text.

<smallcaps> Converts text to uppercase


before rendering.

<space> Adds a horizontal offset between


itself and the rest of the text.

<sprite> Adds a sprite to the text. By default, TextMesh Pro looks in the default sprite
assets, but you can use tag attributes to retrieve sprites
from other assets.

<strikethrough Draws a line slightly above the


>
baseline so it crosses out the text.
Tag: Description: Notes:

<style> Applies a custom style to the


text.

<sub> Converts the text to subscript.

<sup> Converts the test to superscript.

<u> Draws a line slightly below the


baseline to underline the text.

<uppercase> Converts text to uppercase Functionally identical to <allcaps>.


before rendering.

<voffset> Gives the baseline a vertical


offset.

<width> Changes the horizontal size of


text area.

You might also like