โŒ - Using rich text markup on hotspot notes
 
 

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 with material="...").
  • ↔๏ธ <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, and width for custom effects and advanced layout.
<size=100%>Echo <size=80%>Echo <size=60%>Echo
Give me some <space=5em> space.
<sprite=1> for icons