Supported rich text tags
Find all the supported rich text tags.
阅读时间6 分钟最后更新于 1 个月前
The following table lists all the supported rich text tags:
Tag | Description | Example |
|---|---|---|
| Define a hyperlink. Use the Note: This tag has a fixed limit of 256 characters. | |
| Change the text's horizontal alignment. The supported values are:
If you put multiple alignment tags on the same line, the last one overrides the others. | |
| Convert text to uppercase. | |
| Change text opacity. It works with hexadecimal values. | |
| Render text in boldface. | |
| Forces a line break in text. | |
| Change text color or color and opacity. It supports color names and hexadecimal values. If you apply successive tags in the same text, the last one takes precedence over the others until you either add another tag or use a closing tag to end the current color's scope. | |
| Change spacing between characters, either absolute or relative to the original font Asset. Use pixels or font units. Positive adjustments push the characters apart, negative adjustments pull them together. | |
| Change text font. Note: You must place the font asset in the path defined by Default Font Asset in the UITK Text Setting asset. The default path is | |
| Change the text's font weight to any of the weights defined in the font Asset. If you haven't defined any font weights, you can still use | |
| Apply a color gradient to text. | |
| Render text in italics. | |
| Set an absolute horizontal position for the text that follows. When encountered, the text cursor jumps to the specified position regardless of where the preceding text ended. The indentation applies to all text between the tag and the next hard line break. Use this tag to create text patterns, such as bullet points, that work with word-wrapping. Specify indentation in pixels, font units, or percentages. | |
| Modify the line height relative to the default line height specified in the font Asset. Specify the line height in pixels, font units, or percentages. | |
| Indent the first line after every hard line break. New lines created by word-wrapping are not indented. | |
| Convert text to lowercase. | |
| Set the text horizontal margins. If you only want to adjust the left or right margin, you can use the | |
| Highlight the text with a colored overlay. The overlay must be translucent (alpha less than 1) for the text to show through. | |
| Override a font's character spacing and turn it into a monospace font. | |
| Keep a segment of text together. | |
| Prevent parsing of rich text tags. | |
| Set the horizontal caret position on the current line. Specify the horizontal position in pixels, font units, or percentages. | |
| Rotate each character around its own centre. Specify the angle in degrees, counter-clockwise. Rotation is visual only: it doesn't change character spacing, line breaking, or the size of the text. Closing the tag resets the rotation to 0 rather than restoring an enclosing angle. | |
| Render a line across the text. | |
| Adjusts the font size. Specify the new size in pixels, font units, or percentage. Pixel adjustments can be absolute (such as | |
| Convert text to uppercase characters in a small caps style. | |
| Add a horizontal offset between itself and the rest of the text. Specify the offset in pixels or font units. | |
| Add a sprite from a sprite asset into your text. | |
| Apply a custom style to the text. | |
| Convert the text to subscript. | |
| Convert the text to superscript. | |
| Underline the text. | |
| Convert text to uppercase. | |
| Give the baseline a vertical offset. Specify the offset in pixels or font units. The offset is always relative to the original baseline. | |
| Change the horizontal size of text area. | |
| Specify a link ID for a text segment. Note: This tag has a fixed limit of 256 characters. | |