[KLUG Members] (no subject)

Bert members@kalamazoolinux.org
Sat, 27 Mar 2004 18:18:50 +0100


somercet@core.com wrote:

>Whether Mozilla or Firefox, most font configuration is done by X or
>fontconfig.
>
>If you're suffering from a font problem under Linux that you don't get
>under Windows, you probably need the freely-distributable MS fonts:
>
>  andalemo.ttf arial.ttf arialbd.ttf arialbi.ttf ariali.ttf ariblk.ttf
>  comic.ttf comicbd.ttf cour.ttf courbd.ttf courbi.ttf couri.ttf
>  fonts.cache-1 georgia.ttf georgiab.ttf georgiai.ttf georgiaz.ttf
>  impact.ttf times.ttf timesbd.ttf timesbi.ttf timesi.ttf trebuc.ttf
>  trebucbd.ttf trebucbi.ttf trebucit.ttf verdana.ttf verdanab.ttf
>  verdanai.ttf verdanaz.ttf webdings.ttf
>  
>
Okee did this. Installed fonts from the distro disk, no success. Had an 
old w95 install somewhere and tried some ttf file from that, no success 
either.
Installed all the fonts in /usr/X11R6/lib/X11/fonts/truetype.

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


>Most distros have them. Then run ldd(1) on mozilla-bin, wherever it is.
>You should see:
>
>   libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x408da000)
>   libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x408ec000)
>   libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x408f4000)
>   libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4091b000)
>
>  
>
ldd did show some unresolved libs. Copied some libs from 
/usr/local/mozilla to /usr/lib and the all resolves.

laptop:/usr/local/mozilla> ldd mozilla-bin
        libmozjs.so => /usr/lib/libmozjs.so (0x40029000)
        libplds4.so => /usr/lib/libplds4.so (0x400a9000)
        libplc4.so => /usr/lib/libplc4.so (0x400ac000)
        libnspr4.so => /usr/lib/libnspr4.so (0x400b1000)
        libpthread.so.0 => /lib/i686/libpthread.so.0 (0x400e6000)
        libdl.so.2 => /lib/libdl.so.2 (0x40138000)
        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)
        libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x402dd000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x402e6000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x402f4000)
        libm.so.6 => /lib/i686/libm.so.6 (0x403f0000)
        libc.so.6 => /lib/i686/libc.so.6 (0x40413000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

>listed with a bunch of other libs. In order for the X RENDER extension
>to use them, however (for good antialiasing) you need to make these
>available for X using fontconfig. (If you don't see these libs listed,
>you have the wrong package installed.)
>
>  
>
What package is wrong here? What packages do I need to install??
I use a mozilla.-1.6 downloaded from mozilla.org.

>Make sure you have the Truetype dir installed in fontconfig: on my
>system, the user-controlled file /etc/fonts/local.conf has:
>
>
><?xml version="1.0"?>
><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
><!-- /etc/fonts/local.conf file for local customizations -->
><fontconfig>
>        <!-- Enable sub-pixel rendering -->
>	<match target="font">
>		<edit name="rgba" mode="assign"><const>rgb</const></edit>
>	</match>
>
>        <dir>/usr/X11R6/lib/X11/fonts/truetype</dir>
></fontconfig>
>
>
>Note the <dir> entry line at the bottom. This publishes the TTF fonts
>for all RENDER/fontconfig/freetype-enabled apps. You may have the dir
>installed in one of the other files in /etc/fonts.
>
>  
>
Added that line.

Thanks so far for your extensive answer!


Bert.