[ltp] font rendering

Eric Covener linux-thinkpad@linux-thinkpad.org
Fri, 2 Jul 2004 08:24:05 -0400


On Fri, 02 Jul 2004 12:23:00 +0200, Hartwig, Thomas
<t.hartwig@crapoud.com> wrote:
> 
> Hi folks,
>
> I have read a lot of things and tutorials around, but I still do not get
> the TrueType fonts like Arial or Tahoma to work within Mozilla *without*
> antialiasing.

For fontconfig/XFT2 based apps, create a ~/.fonts.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
</match>
</fontconfig>

You can test this by setting XFT_DEBUG envar and watching the final
value of antialias (FcTrue or FcFalse).  xterm -fa mono is a quick and
dirty test.

-- 
Eric Covener
covener@gmail.com