How to Improve Font Rendering on Debian 7 Xfce

Default font rendering on Debian 7 Xfce is not that good. You may want better font rendering especially if you are using an LCD display. Follow the procedures below for better font rendering on Debian 7 Xfce:

  • Open terminal and execute the following to create the file /etc/fonts/local.conf

sudo mousepad /etc/fonts/local.conf

  • Paste the following content in the file:

<match target=”font”>
<edit name=”autohint” mode=”assign”>
<bool>true</bool>
</edit>
<edit name=”hinting” mode=”assign”>
<bool>true</bool>
</edit>
<edit mode=”assign” name=”hintstyle”>
<const>hintslight</const>
</edit>
<edit mode=”assign” name=”lcdfilter”>
<const>lcddefault</const>
</edit>
</match>

  • Save and Close the file.
  • Create a backup copy of .Xresources file:

cp .Xresources .Xresources.bak

  • If the .Xresources file has not been already created then you would get the following error :

cp: cannot stat ‘.Xresources’: No such file or directory

  • Create .Xresources file in text editor:

mousepad .Xresources

  • Delete the contents(if any) and paste the following in it:

Xft.dpi: 96
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.autohint: false
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault

  • Save and Close the file.
  • Run the following command in terminal:

xrdb -merge ~/.Xresources

  • Now open Settings Manager > Appearance > Fonts. Check Enable Anti-Aliasing. Hinting to Slight. Sub-Pixel order to RGB. You can change Custom DPI according to your need.
  • You might want to execute the following in terminal for LCD:

xfconf-query -c xsettings -p /Xft/Lcdfilter -n -t string -s lcddefault

  • No restart you PC.
Visit Debian Fonts Wiki for more info.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s