[FAQ] Bad font rendering in Firefox and other programs

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

  1. Close your program

  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?

Caused by weird new defaults for fontconfig, maybe it will change in future.

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

7 Likes

I notice this as well.

2 Likes

Plot twist! :rofl:
What now… :thinking:

Reason: /etc/fonts/conf.avail was replaced with /usr/share/fontconfig/conf.avail, but files there should not be edited.

P.S. I’ve updated symlink for new one…

I wish they’d stop pushing this ClearType rubbish on us. I like my fonts pixelated and rendered in only two colours: foreground and background!

The natural defects in my eyes take care of anti-aliasing for me :nerd_face:

3 Likes

So
sudo ln -s /etc/fonts/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d/

Is no good anymore? :thinking:

Well, check to see if you already have:

cat "/etc/fonts/conf.d/11-lcdfilter-default.conf"

If not, then just run updated location from OP :upside_down_face:

cat: /etc/fonts/conf.d/11-lcdfilter-default.conf: No such file or directory

Edit: i get this when i use your updated link

ln: failed to create symbolic link ‘/etc/fonts/conf.d/11-lcdfilter-default.conf’: File exists :thinking:

1 Like

You have to delete the broken link at first… :grinning:

rm /etc/fonts/conf.d/11-lcdfilter-default.conf

1 Like

@Christopher67
I think you can also force with -f:

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

See if it works, i’ll add to OP then :slight_smile:

2 Likes

Yup that seemed to worked zero error, so i don’t have to do a fc-cache --force

That does it all it 1 command correct?

1 Like

No, it just removes previous broken symlink and replaces it with new one…
I’d do fc-cache --force as well :upside_down_face:

1 Like

Thanks, looks good! :+1:t3:

2 Likes

As @Kresimir would say:

image

:joy:

2 Likes

This is the fix I didn’t realize I needed. Thanks for the info!

2 Likes

frog_sunglasses_72

4 Likes