[KLUG Members] Mozilla font madness

Peter Buxton members@kalamazoolinux.org
Sun, 28 Mar 2004 14:39:38 -0500


On Sat, Mar 27, 2004 at 06:18:50PM +0100, Bert was only escaped
   alone to tell thee:

> Had no line like '<dir>/usr/X11R6/lib/X11/fonts/truetype</dir>' in
> '/etc/fonts/local.conf' so added that.

Good. Remember, if it is already in /etc/fonts/fonts.conf, and
not commented out with <!-- blah blah -->, you don't need it in
local.conf.

As for the legality of the MS fonts: so far as I know, though MS no
longer distributes them, they are redistibutable by third parties. And
though I have the Bitstream Vera fonts, the new RENDER technology makes
even the old Type 1 fonts look pretty good.

> ldd did show some unresolved libs. Copied some libs from
> /usr/local/mozilla to /usr/lib and the all resolves.

But that's okay, so change it back.

Linux uses /etc/ld.so.conf to manage the paths the dynamic linker uses
to search for libraries. However, Linux apps can have their own private
library dirs. That's why mozilla-bin, the compiled application itself,
is run by the shell script mozilla: it adds the Mozilla dir in
/usr/local to Mozilla's library path.

So go ahead and remove those files you copied to /usr/lib. They're fine
living in /usr/local/mozilla and they'll only cause you grief later on
when you try and update.

>   libgtk-1.2.so.0 => /opt/gnome/lib/libgtk-1.2.so.0 (0x4013b000)
>   libgdk-1.2.so.0 => /opt/gnome/lib/libgdk-1.2.so.0 (0x4027c000)
>   libgmodule-1.2.so.0 => /opt/gnome/lib/libgmodule-1.2.so.0 (0x402b5000)
>   libglib-1.2.so.0 => /opt/gnome/lib/libglib-1.2.so.0 (0x402b8000)

> What package is wrong here? What packages do I need to install??
> I use a mozilla.-1.6 downloaded from mozilla.org.

Ah, so.

Note that your Mozilla binary uses libgtk 1.2. If you want fontconfig
and RENDER support, you need the version of Mozilla/Firefox/Thunderbird
compiled against GTK 2.x, when that support was added to GTK.


http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7b/mozilla-i686-pc-linux-
gnu-1.7b.tar.gz

I can't find a version of Mozilla compiled with GTK 2.x. Firefox has
builds with that support:


http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/0.8/firefox-0.8-i686-linux-gtk2+xf
t.tar.gz

Note the tar.gz has gtk2 and xft right there in the name. I do not know
why Mozilla proper doesn't have this as a download option.

http://www.mozilla.org/releases/ lists a couple ways to install Mozilla,
a tar.gz file you just unpack, and an installer. Perhaps the installer
has GTK 2 support. Perhaps Mozilla just doesn't have that support at
all. Does anyone else use straight Mozilla with GTK 2?

Also note that if you're running a distro, you may be better off with
their package of Mozilla. YMMV.

--
So you had better do as you are told
You better listen to the radio. -- E.Costello, 1977