LogoopenSUSE Build Service > Projects
Sign Up | Log In

freetype and cairo for lcd monitors

How to setup fonts?
1. In ~/.Xresources put:
Xft.autohint: 0 
Xft.lcdfilter: lcddefault 
Xft.hintstyle: hintslight 
Xft.hinting: 1 
Xft.antialias: 1 
Xft.dpi: 96 
Xft.rgba: rgb

2. In ~/.fonts.conf put:
<?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>hintslight</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>

Comments for home:Fisiu:lcd (0)