Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chancelier147/3d1b95d624839b9e75330c9de3d0503d to your computer and use it in GitHub Desktop.
Save chancelier147/3d1b95d624839b9e75330c9de3d0503d to your computer and use it in GitHub Desktop.
Fixing Text Anti-aliasing in Fedora
  1. Add the RPMFusion repositories (both free and non-free) to the YUM repository directory (/etc/yum.repos.d/):
sudo dnf localinstall --nogpgcheck 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
  1. Install the patched version of FreeType with subpixel rendering enabled:
sudo dnf install -y freetype-freeworld
  1. Create the symbolic links in /etc/fonts/conf.d as follows:
sudo ln -s /usr/share/fontconfig/conf.avail/10-autohint.conf
sudo ln -s /usr/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf
sudo ln -s /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf
  1. Change text anti-aliasing and typeface hinting settings as follows (no sudo is required):
gsettings set org.gnome.settings-daemon.plugins.xsettings antialiasing rgba
gsettings set org.gnome.settings-daemon.plugins.xsettings hinting slight

The values above work best for me so feel free to try the values other than the above that work best for you:

  antialiasing: can be any of "none", "grayscale", or "rgba"
  hinting:      can be any of "none", "slight", "medium", or "full"

Of course, you can reset these settings to their default values if you think you might have messed things up or would like to start from scratch, etc.:

gsettings reset org.gnome.settings-daemon.plugins.xsettings antialiasing
gsettings reset org.gnome.settings-daemon.plugins.xsettings hinting
  1. Restart applications for these settings to take effect if they were running when making these changes (usually not necessary).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment