Completely disable font anti-aliasing in Linux

User Help for Mozilla Firefox
Locked
Guest
Guest

Completely disable font anti-aliasing in Linux

Post by Guest »

The anti-aliased font appeared ugly to me, and I wanted that feature off.

SYS: Firefox 1.5.0.1, Redhat, KDE

I switched the anti-aliasing off for system fonts by Start->Control center->Appearance and Themes->Fonts.
That worked well for everything else but not firefox.

In about:config, I set font.antialias.min to 50, no luck. font.freetype2.enable was false(default).

Can anyone help me not have this anti-aliasing?
User avatar
logan
Posts: 3453
Joined: May 22nd, 2003, 3:51 pm
Location: NGC 2403
Contact:

Post by logan »

~/.fonts.conf

Code: Select all

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

You could also force a specific unaliased font for everything (chrome) in ~/.gtkrc-2.0:

Code: Select all

gtk-font-name = "Helvetica 9"

but you'd still need to override document fonts with unaliased fonts for content.
Locked