On Tuesday 03 December 2002 08:50, Fergus Wilde wrote:
Hi All,
Faintly irritated by still-fuzzy fonts after doing a bit of work to get browser / general / especially Mozilla / fonts looking better (lots of good advice at http://www.tldp.org/HOWTO/mini/FDU and in the Unofficial FAQ at $YOURLOCALMIRROR/susefaq/generalx.html), I took the bull by the horns and compiled and installed freetype 2.1.3 from http://www.freetype.org (./configure --prefix=/usr && make && make install seems fine).
Yeah, the freetype2 compile is surprisingly smooth. I just compiled 2.1.3 myself (RPM, actually). Interestingly, the freetype.sf.net page still says 2.1.2 is the latest release. Going into the downloads section, though, you can download the source. FYI (and everyone else's), if you have a proper TrueType license, you might want to turn on the bytecode interpreter if you're compiling your own freetype2. You have to edit the ftoption.h file in include/freetype/config and #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER . Supposedly it gives much better results, but I don't use it as I use the hacked Xft library from http://www.cs.mcgill.ca/~dchest/xfthack/ with Microsoft's TrueType fonts. Gorgeous... Now if only YaST2 didn't use it's own font and used KDE defaults...
In case of screw-ups, I had backed up the libraries under /usr/lib, the include directory /usr/include/freetype, and /usr/X11R6/lib/modules/fonts/libfreetype.a (the only file I could find under the X11 hierarchy that seemed to be from freetype. Thinking myself smart, I copied the newly formed libfreetype.a from my build directory to /usr/X11R6/lib/modules/fonts/. That caused the X server to crash on restarting, putting the old libfreetype.a back where it was restored all to health.
Yup, I expected as much. Read on...
So the point of the mail is 1) freetype 2.1.3 really does seem, on my 8.1 i386 system at least, to provide signifcant improvement in the anti-aliasing / font-smoothing performance. See freetype's site for the scoop on why/how. You might want to check it out, but not before reading the various other advice and caveats at the addresses above.
2) Obviously I should have left /usr/X11R6/lib/modules/libfreetype.a alone, and not meddled. Can a patient person quickly and coherently explain why the system needs the old one left in place? I think I understood this once, but clearly don't now.
Sure, Fergus. In short, that libfreetype.a is a XFree86 -module-. See /var/log/XFree86.0.log: (II) Loading /usr/X11R6/lib/modules/fonts/libfreetype.a (II) Module freetype: vendor="The XFree86 Project" compiled for 4.2.0, module version = 1.1.10 Module class: XFree86 Font Renderer ABI class: XFree86 Font Renderer, version 0.3 The libfreetype.a from the source is a static library to compile apps with freetype2 staticly. -- Karol Pietrzak <noodlez84@earthlink.net> PGP KeyID: 3A1446A0