<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mok</title>
    <description>The latest articles on DEV Community by Mok (@mok_hong_83070078e07b9066).</description>
    <link>https://dev.to/mok_hong_83070078e07b9066</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3951660%2F71f2df69-0e2b-4720-a0eb-36965d72aef3.jpg</url>
      <title>DEV Community: Mok</title>
      <link>https://dev.to/mok_hong_83070078e07b9066</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mok_hong_83070078e07b9066"/>
    <language>en</language>
    <item>
      <title>Why "fancy fonts" in Discord and Instagram bios turn into boxes</title>
      <dc:creator>Mok</dc:creator>
      <pubDate>Tue, 26 May 2026 03:37:31 +0000</pubDate>
      <link>https://dev.to/mok_hong_83070078e07b9066/why-fancy-fonts-in-discord-and-instagram-bios-turn-into-boxes--4dil</link>
      <guid>https://dev.to/mok_hong_83070078e07b9066/why-fancy-fonts-in-discord-and-instagram-bios-turn-into-boxes--4dil</guid>
      <description>&lt;p&gt;You've seen it everywhere — 𝓬𝓾𝓻𝓼𝓲𝓿𝓮 Discord names, 𝗯𝗼𝗹𝗱 Instagram bios, ʙᴜʙʙʟᴇ usernames. You've probably also seen the cursed version: someone's clever bio rendered as a row of □ □ □ boxes.&lt;/p&gt;

&lt;p&gt;Here's what's actually going on under the hood, and why it breaks for some people but not others.&lt;/p&gt;

&lt;h2&gt;
  
  
  These aren't fonts. They're characters.
&lt;/h2&gt;

&lt;p&gt;When you "change the font" with one of those copy-paste generators, you're not applying a typeface. A real font change needs CSS or an installed font file — neither of which you can paste into a Discord username field.&lt;/p&gt;

&lt;p&gt;Instead, the trick uses &lt;strong&gt;different Unicode characters that happen to look like styled letters.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The plain Latin &lt;code&gt;a&lt;/code&gt; is &lt;code&gt;U+0061&lt;/code&gt;. But Unicode also contains:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;𝐚&lt;/code&gt; Mathematical Bold — &lt;code&gt;U+1D41A&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;𝑎&lt;/code&gt; Mathematical Italic — &lt;code&gt;U+1D44E&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;𝓪&lt;/code&gt; Mathematical Bold Script — &lt;code&gt;U+1D4EA&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;𝕒&lt;/code&gt; Mathematical Double-Struck — &lt;code&gt;U+1D552&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ⓐ&lt;/code&gt; Circled Latin — &lt;code&gt;U+24D0&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most of these live in the &lt;strong&gt;Mathematical Alphanumeric Symbols&lt;/strong&gt; block (&lt;code&gt;U+1D400–U+1D7FF&lt;/code&gt;), which was added for math notation. People repurposed them as "fonts."&lt;/p&gt;

&lt;p&gt;So a generator is really just a lookup table:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;bold&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;a&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;𝗮&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;b&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;𝗯&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;c&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;𝗰&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="cm"&gt;/* ...rest of the alphabet */&lt;/span&gt; &lt;span class="p"&gt;};&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;toBold&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;[...&lt;/span&gt;&lt;span class="nx"&gt;text&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;ch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;bold&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;ch&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="nx"&gt;ch&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nf"&gt;toBold&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;hello&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 𝗵𝗲𝗹𝗹𝗼&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's the whole magic. No fonts — just character substitution.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it turns into □ boxes
&lt;/h2&gt;

&lt;p&gt;A &lt;code&gt;□&lt;/code&gt; (officially &lt;strong&gt;.notdef&lt;/strong&gt;, informally &lt;strong&gt;tofu&lt;/strong&gt;) appears when the device rendering the text &lt;strong&gt;has no glyph for that code point.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It's not a Discord bug or an Instagram bug — it's the &lt;em&gt;viewer's&lt;/em&gt; device missing the character. That's why the same bio can look perfect on your phone and broken on your friend's.&lt;/p&gt;

&lt;p&gt;Glyph coverage varies a lot:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Modern iOS / updated Android — broad coverage&lt;/li&gt;
&lt;li&gt;Older or budget Android — much narrower, and this is where it breaks most&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The worst offenders: combining marks
&lt;/h2&gt;

&lt;p&gt;Some "styles" don't even use dedicated characters. Strikethrough and underline stack a &lt;strong&gt;combining mark&lt;/strong&gt; after each normal letter:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;strike&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
  &lt;span class="p"&gt;[...&lt;/span&gt;&lt;span class="nx"&gt;text&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;ch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;ch&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;̶&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nf"&gt;strike&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;hello&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;// h̶e̶l̶l̶o̶   on desktop&lt;/span&gt;
&lt;span class="c1"&gt;// h□e□l□l□o□  on many Android builds&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;U+0336&lt;/code&gt; is "combining long stroke overlay." On desktops it overlays cleanly; on a lot of Android builds it detaches into a box. These combining-mark styles are the ones most likely to break — and the ones I'd avoid for anything public like a username.&lt;/p&gt;

&lt;h2&gt;
  
  
  So which styles are safe?
&lt;/h2&gt;

&lt;p&gt;Rule of thumb: &lt;strong&gt;dedicated characters from the Mathematical Alphanumeric block are safe; combining-mark tricks are risky.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Safe almost everywhere:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Bold, Italic, Bold Italic&lt;/li&gt;
&lt;li&gt;Script / Cursive&lt;/li&gt;
&lt;li&gt;Fraktur / Gothic&lt;/li&gt;
&lt;li&gt;Double-struck&lt;/li&gt;
&lt;li&gt;Small caps&lt;/li&gt;
&lt;li&gt;Monospace&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Risky (test before using publicly):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Strikethrough, underline (combining marks)&lt;/li&gt;
&lt;li&gt;Zalgo / "glitch" (stacked combining marks)&lt;/li&gt;
&lt;li&gt;Rare decorative or regional symbols&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Practical takeaway
&lt;/h2&gt;

&lt;p&gt;If you're building or using one of these, lean on the Math Alphanumeric block and skip the combining-mark styles for anything other people will see on unknown devices.&lt;/p&gt;

&lt;p&gt;I went down this rabbit hole because every generator I tried would happily dump broken characters into a Discord name. I ended up building &lt;a href="https://fontpaste.net" rel="noopener noreferrer"&gt;FontPaste&lt;/a&gt; — it only ships styles I tested to render across iOS, Android, and Discord, so you don't paste a row of boxes into your bio.&lt;/p&gt;

&lt;p&gt;If you just want the mechanism: it's substitution tables + glyph coverage. If you want it to actually work for everyone: stick to the safe block and test on a cheap Android phone.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>unicode</category>
      <category>discord</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
