Skip to content

Instantly share code, notes, and snippets.

@mertcanekiz
Created October 4, 2015 07:31
Show Gist options
  • Save mertcanekiz/2044abae0388e6fb7383 to your computer and use it in GitHub Desktop.
Save mertcanekiz/2044abae0388e6fb7383 to your computer and use it in GitHub Desktop.
Mac-like font rendering for Linux
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>false</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
<dir>~/.fonts</dir>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment