You have seen it on Instagram, X and Discord: a name in bold or cursive letters, even though those apps have no font menu. It looks like a font, but it is not. It is plain text made of different Unicode characters.
In this post I will show how it works, write a tiny JavaScript converter, and cover the gotchas that will bite you if you build one.
The trick: look-alike letters in another Unicode block
Unicode has a block called Mathematical Alphanumeric Symbols. It was added so that mathematicians could write things like a bold A or an italic x as distinct characters. It contains whole alphabets in bold, italic, script, fraktur, double-struck and more.
Because they are separate characters, you can copy and paste them anywhere that handles Unicode text, with no font involved. The bold capital A is U+1D400 , and the rest of the bold capitals follow in order.β¦