I'm using a RichTextLabel
in Godot 4 and I'm trying to insert a special unicode character into it (I'm using fontawesome). I know the unicode index of said character. How do I add it to the label via that index?
I tried:
\uf6e3
\Uf6e3
u+f6e3
U+f6e3
[unicode]f6e3[/unicode]
All of the above just print the control sequence as-is, they don't print the unicode character I'm trying to refer to.
The only way that works is to literally copy the unicode character (as text) into my clipboard and pasting it directly into the label text in the editor. This works, but isn't very usable because the editor itself cannot display that character. I would much rather have the control sequence visibile in the editor, and the actual character in-game.
Not sure if this is a new feature, but currently you can use the BBCode tag to insert Unicode using its hexadecimal value.
[char=XX]