Skip to content

Instantly share code, notes, and snippets.

@kubadlo
Last active November 5, 2022 17:33
Show Gist options
  • Save kubadlo/d7c9a8f5eb9a1dd25ce4 to your computer and use it in GitHub Desktop.
Save kubadlo/d7c9a8f5eb9a1dd25ce4 to your computer and use it in GitHub Desktop.
Linux font rendering tweak that fixes fonts in Firefox.
<!-- Save this config as /etc/fonts/local.conf (or similar, related to your distro) and reboot system or run fc-cache -->
<!-- For better font rendering is good to install package freetype-freeworld -->
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="autohint" mode="assign">
<bool>false</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
<edit name="lcdfilter" mode="assign">
<const>lcddefault</const>
</edit>
<edit name="rgba" mode="assign">
<const>rgb</const>
</edit>
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment