<?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: Fontnook</title>
    <description>The latest articles on DEV Community by Fontnook (@fontnook).</description>
    <link>https://dev.to/fontnook</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4206654%2Fe0eb79be-f613-4a6f-81d9-92e9bb3afd73.png</url>
      <title>DEV Community: Fontnook</title>
      <link>https://dev.to/fontnook</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fontnook"/>
    <language>en</language>
    <item>
      <title>Fancy Fonts Aren't Fonts: How Unicode Text Styles Actually Work</title>
      <dc:creator>Fontnook</dc:creator>
      <pubDate>Sat, 28 Nov 2026 04:47:20 +0000</pubDate>
      <link>https://dev.to/fontnook/fancy-fonts-arent-fonts-how-unicode-text-styles-actually-work-59be</link>
      <guid>https://dev.to/fontnook/fancy-fonts-arent-fonts-how-unicode-text-styles-actually-work-59be</guid>
      <description>&lt;p&gt;Paste this into any text box: 𝓜𝓪𝓻𝓲𝓪&lt;/p&gt;

&lt;p&gt;It looks like a cursive font. But no font was applied. It's five ordinary characters that just happen to be different characters from the ones you'd normally type.&lt;/p&gt;

&lt;p&gt;That's how every "fancy font generator" works, and it explains why these styles sometimes break.&lt;/p&gt;

&lt;h2&gt;
  
  
  They're characters, not fonts
&lt;/h2&gt;

&lt;p&gt;A font changes how the &lt;em&gt;same&lt;/em&gt; characters are drawn. Fancy text changes the characters themselves.&lt;/p&gt;

&lt;p&gt;You can see it in two lines of JavaScript:&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="s2"&gt;"M"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;codePointAt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="c1"&gt;// "4d"&lt;/span&gt;
&lt;span class="s2"&gt;"𝓜"&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;codePointAt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  &lt;span class="c1"&gt;// "1d4dc"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The plain M is U+004D. The cursive one is U+1D4DC, officially named &lt;em&gt;MATHEMATICAL BOLD SCRIPT CAPITAL M&lt;/em&gt;. A generator is just a lookup table that swaps each letter for its counterpart.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where these characters come from
&lt;/h2&gt;

&lt;p&gt;Most of them live in the Mathematical Alphanumeric Symbols block (U+1D400 to U+1D7FF). Unicode added it so mathematicians could use distinct letter styles, like bold, italic, script, fraktur and double-struck, in notation.&lt;/p&gt;

&lt;p&gt;Designers of "cool text" tools reuse those letters because they look like the styles people want in a bio.&lt;/p&gt;

&lt;p&gt;Since the block is laid out in order, many styles are simple offsets. Bold Script starts at U+1D4D0 for "A", so "M" (the 13th letter) is U+1D4D0 + 12 = U+1D4DC.&lt;/p&gt;

&lt;h2&gt;
  
  
  The exceptions
&lt;/h2&gt;

&lt;p&gt;Not every letter is in that block. Some already existed in the older Letterlike Symbols block (U+2100 to U+214F), so Unicode left a gap rather than duplicate them.&lt;/p&gt;

&lt;p&gt;Take plain Script, not Bold Script. The slot where capital B would sit (U+1D49D) is unassigned. The real script B is ℬ, at U+212C, in the older block. In Script, eleven letters are patched this way: B, E, F, H, I, L, M, R, e, g and o.&lt;/p&gt;

&lt;p&gt;Other styles have gaps too: Fraktur has five, Double-Struck has seven and Italic has one. If you build a generator, you need an exceptions table, or your output will have holes.&lt;/p&gt;

&lt;p&gt;It also explains something users notice: in some styles one letter looks slightly different in weight from its neighbors, because it comes from a different block.&lt;/p&gt;

&lt;h2&gt;
  
  
  What breaks
&lt;/h2&gt;

&lt;p&gt;Because these are real characters and not styling, everything that handles text affects them.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Missing glyphs.&lt;/strong&gt; Most of these characters are above U+10000, so they sit outside the Basic Multilingual Plane. Modern phones and browsers have fonts for them. Older devices may not, and show empty boxes (□□□) instead.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Screen readers.&lt;/strong&gt; Behavior varies, but a screen reader may announce 𝒜 as "Mathematical Script Capital A", read it oddly, or skip it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Search.&lt;/strong&gt; Some search tools treat styled characters as different from plain ones, so a styled name may not match a search for the plain name.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accented letters.&lt;/strong&gt; The block only covers A–Z and a–z, so é, ñ and ü stay plain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Length.&lt;/strong&gt; In JavaScript, &lt;code&gt;"𝓜".length&lt;/code&gt; is 2, because it's stored as two UTF-16 units. Character counters can disagree with what you see.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When to use it
&lt;/h2&gt;

&lt;p&gt;In my own paste tests, styled names were accepted in display names and bios on Instagram, TikTok and Discord. I didn't test other platforms, so check each one.&lt;/p&gt;

&lt;p&gt;My rule of thumb:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fine:&lt;/strong&gt; display names, bios, decorative text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Avoid:&lt;/strong&gt; usernames and handles, which are generally plain ASCII only, and anything that has to be read by everyone or found by search.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Always:&lt;/strong&gt; keep a plain-text version somewhere nearby.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I wrote up the accessibility side in more detail here: &lt;a href="https://fontnook.com/are-fancy-fonts-accessible" rel="noopener noreferrer"&gt;Are Fancy Fonts Accessible?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you just want to try the styles, I built a free copy-and-paste generator: &lt;a href="https://fontnook.com/" rel="noopener noreferrer"&gt;fontnook.com&lt;/a&gt;. It runs in the browser, so nothing you type is sent anywhere.&lt;/p&gt;

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