This section explains what rich text tags are and how you can use them to format and customise text on GeoAR.it hotspots.
๐ค Rich Text Tags Overview
- ๐ Rich text tags let you alter the appearance and layout of hotspot text—similar to HTML/XML, but more relaxed.
- ๐ Tags look like
<tag>. Many have scopes (</tag>) and can be nested. - โ๏ธ Some tags accept values and attributes, e.g.
<tag=value>or<tag attribute=value>. Numbers, pixels, %, em, and hex codes are supported. - ๐ Tags with attributes are limited to 128 characters each (plenty for almost any use).
This section provides a quick reference to the supported tags.
๐ Tag Reference Table
| Tag | Summary |
|---|---|
align |
Text alignment. |
alpha, color |
Colour and opacity. |
b, i |
Bold and italic style. |
cspace |
Character spacing. |
font |
Font and material selection. |
indent |
Indentation. |
line-height |
Line height. |
line-indent |
Line indentation. |
link |
Text metadata (user interaction). |
lowercase, uppercase, smallcaps |
Capitalisation. |
margin |
Text margins. |
mark |
Highlight text. |
mspace |
Monospacing. |
noparse |
Don’t parse tags inside. |
nobr |
Non-breaking spaces. |
page |
Page break. |
pos |
Horizontal caret position. |
size |
Font size. |
space |
Horizontal space. |
sprite |
Insert sprites/images. |
s, u |
Strikethrough and underline. |
style |
Custom styles. |
sub, sup |
Subscript and superscript. |
voffset |
Baseline offset. |
width |
Text width. |
This section covers alignment, colour, and opacity tags with examples.
๐ก Alignment & ๐จ Colour
- ๐
<align="right">(or "center"/"left") to align text in that scope. - ๐จ
<color="red">,<color=#005500>,<#0000FF>(hex colours allowed). - ๐ง
<alpha=#CC>changes text opacity (hex 00–FF).
<align="right">Right aligned
<color="red">Red <color=#005500>Dark Green <#0000FF>Blue
<alpha=#88>Semitransparent
This section shows how to use bold, italic, and character spacing tags.
๐ฒ Bold, Italic & โณ Character Spacing
<b>bold,<i>italic,</b>,</i>to end scope.<cspace=1em>Text</cspace>for extra letter spacing.
The <i>quick brown fox</i> jumps over the <b>lazy dog</b>.
<cspace=1em>Spacing</cspace>
This section covers font switching, indentation, and line height controls.
๐๏ธ Font, Indent & Line Height
- ๐๏ธ
<font="Impact SDF">Impact font</font>(or swap material withmaterial="..."). - ↔๏ธ
<indent=15%>Indented text</indent>. - โซ
<line-height=150%>More space between lines</line-height>.
Would you like <font="Impact SDF">a different font?</font>
1. <indent=15%>Bullet point</indent>
Line height at 100%
<line-height=150%>Tall lines
This section shows how to use advanced tags like links, case, marking, monospace, and more.
๐ Links, Case, Marking & More
- ๐
<link="ID">my link</link>for clickable metadata (not visually styled by default). - ๐
<lowercase>...,<uppercase>...,<smallcaps>...for case control. - ๐
<mark=#ffff00aa>highlight</mark>for a translucent overlay. - ๐ค
<mspace=2.75em>monospace</mspace>to force all characters same width. - ๐ซ
<noparse>disables parsing within scope. - โ
<nobr>Keep together</nobr>disables word-wrap. - ๐
<page>for a page break (in page overflow mode).
<link="help">Tap for help</link>
<lowercase>LOWERCASE</lowercase>
<mark=#ffff00aa>highlight</mark>
<noparse><b></noparse> shows tags literally.
This section covers font size, space, sprites, and more.
๐ Size, Space, Sprites & Advanced
- ๐
<size=100%>Normal</size>,<size=80%>Smaller</size> - โฌ
<space=5em>adds horizontal space. - ๐ผ๏ธ
<sprite=1>or<sprite name="icon">to insert images/icons (sprite atlases). - โ๏ธ Use
style,sub,sup,voffset, andwidthfor custom effects and advanced layout.
<size=100%>Echo <size=80%>Echo <size=60%>Echo
Give me some <space=5em> space.
<sprite=1> for icons