Archive for March, 2012

Improved font rendering in lightweight desktop environments

When using lightweight desktop environments or window managers without desktop environments, sometimes font rendering does not look as good as in GNOME or KDE.

It is possible to improve font rendering by creating the file ~/.fonts.conf and inserting the following content.

<?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>true</bool>
              </edit>
       </match>
       <match target="font" >
               <edit mode="assign" name="hintstyle">
               <const>hintmedium</const>
               </edit>
       </match>
</fontconfig>

The degree of subpixel hinting can be configured by using either hintslight, hintmedium or hintfull for the last parameter.

Via: http://giowisys.com/~giowck/blog/?p=8

Tuesday, March 13th, 2012 Linux No Comments