3 Steps to Fixing Fedora 24+ Font Rendering

This is shamelessly reproduced from the Fedora subreddit thread that covers exactly this problem. I am posting it here so that I can find it again in the future.

First thing I noticed when switching to Fedora from Ubuntu, was the terrible font rendering. So a quick look around led me to a number of solutions, including the subreddit mentioned above, which is the first one I tried and stuck with.

  1. Add the RPMfusion repositories (I added both free and non-free):
    su -c 'dnf install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'
  2. Install freetype-freeworld:
    sudo dnf install freetype-freeworld
  3. Configure freetype to your liking in a file at /etc/fonts/local.conf. Here’s the settings suggested in the above subreddit:
    <?xml version='1.0'?>
    <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
        <match target="font">
            <edit name="antialias" mode="assign">
            <edit name="autohint" mode="assign">
            <edit name="embeddedbitmap" mode="assign">
            <edit name="hinting" mode="assign">
            <edit name="hintstyle" mode="assign">
            <edit name="lcdfilter" mode="assign">
            <edit name="rgba" mode="assign">

Other methods

There are other methods I came across too:

  • Fedy has a tweak that fixes font rendering if you like the one-click approach
  • Infinality is a bundle of goodies that claims to patch the fonts