Skip to content

Instantly share code, notes, and snippets.

@ovelny
Last active December 7, 2021 07:00
Show Gist options
  • Save ovelny/46f13a5f658edb91143931c1883cebfc to your computer and use it in GitHub Desktop.
Save ovelny/46f13a5f658edb91143931c1883cebfc to your computer and use it in GitHub Desktop.
Fix pixelated Monaco Font (Google Chrome, Firefox...) on Linux

TL;DR: solution is to disable embedded bitmaps, either for all fonts or Monaco font

  • Create a file named 20-no-embedded.conf in ~/.config/fontconfig/conf.d/
  • To disable this behavior with all fonts, add this in your file:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font">
   <edit name="embeddedbitmap" mode="assign">
     <bool>false</bool>
   </edit>
 </match>
</fontconfig>
  • For Monaco font only, add this instead:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <match target="font">
        <test qual="any" name="family">
           <string>Monaco</string>
        </test>
        <edit name="embeddedbitmap">
            <bool>false</bool>
        </edit>
    </match>
</fontconfig>
  • Restart your system and this should now be fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment