Created
March 10, 2012 20:46
-
-
Save radupotop/2013104 to your computer and use it in GitHub Desktop.
fonts.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<!-- http://ubuntuforums.org/showthread.php?t=1354116 --> | |
<fontconfig> | |
<!-- See: man 5 fonts-conf --> | |
<!-- Antialias rules --> | |
<match target="font"> | |
<!--Subpixel smoothing: rgb, bgr, vrgb, vbgr, none--> | |
<edit mode="assign" name="rgba"><const>none</const></edit> | |
<!-- Use hint? true/false. Usually true--> | |
<edit mode="assign" name="hinting"><bool>true</bool></edit> | |
<!-- Hint: hintfull, hintmedium, hintslight, hintnone --> | |
<edit mode="assign" name="hintstyle"><const>hintfull</const></edit> | |
<!-- By default, apply antialias to all, filter on the following lines --> | |
<edit mode="assign" name="antialias"><bool>true</bool></edit> | |
</match> | |
<!-- If fonts are smaller than X, then don't antialias--> | |
<match target="font"> | |
<test compare="less_eq" name="size" qual="any"> | |
<int>16</int> | |
</test> | |
<edit mode="assign" name="antialias"> | |
<bool>false</bool> | |
</edit> | |
</match> | |
<!-- Firefox fix (it uses pixelsize, instead of size) --> | |
<match target="font"> | |
<test compare="less_eq" name="pixelsize" qual="any"> | |
<int>16</int> | |
</test> | |
<edit name="antialias" mode="assign"> | |
<bool>false</bool> | |
</edit> | |
</match> | |
<!-- Use MS fonts as default --> | |
<alias> | |
<family>serif</family> | |
<prefer> | |
<family>Times New Roman</family> | |
</prefer> | |
</alias> | |
<alias> | |
<family>sans-serif</family> | |
<prefer> | |
<family>Arial</family> | |
</prefer> | |
</alias> | |
<alias> | |
<family>monospace</family> | |
<prefer> | |
<family>Courier New</family> | |
</prefer> | |
</alias> | |
</fontconfig> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment