Text formatting
Trackmania styles text with codes that start with $. TextFormatter reads them by the same rules
as the parser of the game, and turns the text into plain text, HTML, or ANSI for terminals.
Playground
<FormattedText>
TextFormatter.Deformat
BigBang1112 TextFormatter.FormatHtml
<span style="color:#fc0;text-shadow:1px 1px 2px black"><span class="tm-icon"></span> </span><span style="color:#fff;font-weight:bold;text-shadow:1px 1px 2px black">Big</span><span style="color:#0af;font-weight:bold;text-shadow:1px 1px 2px black">Bang</span><span style="color:#fc0;font-weight:bold;text-shadow:1px 1px 2px black">1112</span> <span style="color:#f44"><span class="tm-icon"></span></span>TextFormatter.FormatAnsi
\e[93m \e[97mBig\e[96mBang\e[93m1112\e[39m\e[22m \e[91m\e[39m\e[22mIcons
The game shows the characters U+F000 to U+F2E0 as Font Awesome 4.7 icons.
FormattedText wraps them in <span class="tm-icon">, which the stylesheet of TmEssentials.Razor displays with the icon font.
U+F007U+F0C0U+F091U+F11EU+F017U+F1B9U+F11BU+F005U+F004U+F06DU+F0E7U+F135U+F0ACU+F001U+F030U+F023U+F00CU+F00DU+F062U+F063Use the stylesheet
<link rel="stylesheet" href="_content/TmEssentials.Razor/tm-essentials.css" />
Or keep your own Font Awesome 4.7 stylesheet with IconCssClass="fa", or turn the wrapping off with IconCssClass="@null".
Platform icons
The game also has icons for platforms at U+F7AE to U+F7B2 (PlayStation, Ubisoft, Stadia, Xbox, Luna). They come from the font of the game and are not part of Font Awesome, so they are left as they are.