Bad font rendering in Firefox

It’s not only Firefox though, but any program using fontconfig

  1. Close browser

  2. Enable LCD filter

    sudo ln -fs /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d/
    
  3. Rebuild font cache

    fc-cache --force
    

Why it happened?

Starting from FreeType 2.10.3, Arch Linux enables ClearType subpixel rendering by default [4] .

When using ClearType subpixel rendering, you should enable the LCD filter, which is designed to reduce colour fringing.

(c) https://wiki.archlinux.org/index.php/Font_configuration

4 Likes