Better Font Rendering

From awesome
Jump to: navigation, search

You might be able to get a smoother font rendering with one of the .fonts.conf below. Actually it depends on the kind of monitor used, so one of them might work better over the other, or none of them might work at all.

 <?xml version="1.0"?>
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <fontconfig>
     <match target="font" >
         <edit mode="assign" name="autohint" >
             <bool>true</bool>
         </edit>
     </match>
     <match target="font" >
         <edit mode="assign" name="rgba" >
             <const>none</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>hintnone</const>
         </edit>
     </match>
     <match target="font" >
         <edit mode="assign" name="antialias" >
             <bool>true</bool>
         </edit>
     </match>
 </fontconfig>


 <?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <fontconfig>
     <match target="font">
         <edit mode="assign" name="rgba">
             <const>none</const>
         </edit>
     </match>
     <match target="font">
         <edit mode="assign" name="hinting">
             <bool>true</bool>
         </edit>
     </match>
     <match target="font">
         <edit mode="assign" name="hintstyle">
             <const>hintmedium</const>
         </edit>
     </match>
     <match target="font">
         <edit mode="assign" name="antialias">
             <bool>true</bool>
         </edit>
     </match>
 </fontconfig>

Following two probably are good resources to read more about font configuration:

  1. http://www.freedesktop.org/software/fontconfig/fontconfig-user.html
  2. https://wiki.archlinux.org/index.php/Font_Configuration
Personal tools