September 30, 2002
Perfect Mozilla Anti-aliasing

While searching for a way to make my desktop look nicer, I came along a good thread in the gentoo forums. It's the third post from the top, by zepar. This works great for mozilla/galeon/etc when you don't have the XFT enabled mozilla available, and are using the freetype anti-aliasing. Read more for what to do...

Put the following (or modify what you have) in your /usr/lib/mozilla/defaults/pref/unix.js file. Don't forget to add your truetype directories into the list as well!
pref("font.FreeType2.enable", true);
pref("font.freetype2.shared-library", "libfreetype.so.6");
// if libfreetype was built without hinting compiled in
// it is best to leave hinting off
pref("font.FreeType2.autohinted", true);
pref("font.FreeType2.unhinted", true);
// below a certian pixel size anti-aliased fonts produce poor results
pref("font.antialias.min", 6);
pref("font.embedded_bitmaps.max", 1000000);
pref("font.scale.tt_bitmap.dark_text.min", 64);
pref("font.scale.tt_bitmap.dark_text.gain", "0.1");


Posted by Arcterex at September 30, 2002 10:16 AM