A nice ~/.fonts.conf file

Submitted by Fekete Zoltán on

Remember, the fonts should be installed either into the systems fonts repository or into ~/.fonts directory !

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
       <alias>
               <family>sans-serif</family>
               <prefer>
                       <family>Droid Sans</family>
                       <family>Liberation Sans</family>
               </prefer>
       </alias>
       <alias>
               <family>monospace</family>
               <prefer>
                       <family>Source Code Pro</family>
               </prefer>
       </alias>
       <alias>
               <family>serif</family>
               <prefer>
                       <family>Liberation Serif</family>
               </prefer>
       </alias>


        <match target="font">
                <edit name="antialias" mode="assign"><bool>true</bool></edit>
                <edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
                <edit name="autohint" mode="assign"><bool>false</bool></edit>
                <edit name="rgba" mode="assign"><const>rgb</const></edit>

                <edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
        </match>


        <match target="font">
                <edit name="embeddedbitmap" mode="assign">
                <bool>false</bool>
                </edit>
        </match>

        <match target="pattern">
                <edit name="dpi" mode="assign"><double>96</double></edit>
        </match>
</fontconfig>

 

Tags