Type “Ajay” into a generator and ”𝓐𝓳𝓪𝔂” comes back. It looks like the same name in a new font, but nothing about a font was changed. Each of those four letters is a different character with its own number. Once you see how the numbers work, the strange behaviour of fancy text, such as double counting, missing letters and boxes, stops being mysterious.
Every character has a number
Unicode gives every character a number called a code point. Plain capital A is U+0041. The bold capital A used in the Bold style is U+1D400. Bold script capital A is U+1D4D0. They are all letters of the alphabet that a mathematician might use, standing in the block called Mathematical Alphanumeric Symbols. A generator is simply a lookup table that replaces U+0041 with U+1D4D0, U+0042 with U+1D4D1 and so on.
Because the letters are placed in order, the swap is very regular. For Bold Script, capital A to Z run from U+1D4D0 to U+1D4E9, and lowercase a to z start at U+1D4EA. That regularity is why a single page can offer dozens of styles from tiny lookup rules.
The exceptions that make some letters look odd
The mathematical blocks have holes. Unicode had already given some letters, such as script capital B or double struck R, a place in an older block, so it left a gap and did not encode them twice. Generators fill the gaps from the older block. That is why, in Script, capital B, E, F, H, I, L, M, R and lowercase e, g and o come from a different place, and why Italic has a special small h. The letters are the right shape, but they may be drawn from a different font on your phone and look a little different.
Why a styled letter counts as two
Many apps store and count text in UTF16, which uses 16 bit units. Code points up to U+FFFF fit in one unit. Code points above that need two, called a surrogate pair. The mathematical styles, the boxed and filled circle styles, and coloured emoji all live above U+FFFF, so each letter takes two units. Small Caps, Tiny, Wide and the circled Bubble style live below it and cost one. This is why the length badges on cards show a bigger number than the letters you can see.
Combining marks: effects without new letters
Underline, Strike Through, Slashed, Overline and Wavy Line work differently. They keep your plain letters and add a combining character after each one. A combining character has no width. It tells the text engine to draw a line on the previous letter. It is still a character, so it counts, which doubles the length.
Why Hindi, Bangla and Urdu are not styled
Unicode created bold, script and gothic versions of Latin letters because mathematicians use them as symbols. There is no such set for Devanagari, Bengali or Arabic script. A swap tool has nothing to swap to, so for these scripts the page can only add hearts, stars, spaces and symbol pairs. A real styled look needs a real font, which is what the Name image tab provides.
Where the drawing happens
A code point is only a number. The shape on the screen comes from a font on the device, and if no font has that code point the device draws a box. Fancy text depends on a phone having a font that covers the mathematical block, which most modern phones do. Why stylish names show boxes covers the failures.
What it means for readers and search
Screen readers may announce the Unicode name of each letter, such as mathematical bold script capital A, instead of the word. Search treats styled letters as different characters from plain ones. Keep an ordinary version of anything people need to find or hear. For a list of the names of each style, open the font names list.