-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Guy Van Sanden wrote:
> I'm having trouble using most truetype fonts with the gimp
> (gimp-1.2.3-20mdk).
...

> But many of them (about 70%) are not handled correctly or at all by the
> Gimp, they are shown in the list, but fail when selected.
>
I fought with this for a while before I finally got it. Hopefully what I did
will work for you. (I fixed three 9.1 boxes here that had this problem.)

I originally posted this here in : July 7, 2003

I finally got the font (flubber) to work. It is a hack, and I still don't
understand why some of the fonts won't work the way Mandrake installs them,
but I don't have the time nor the patience to make a major study of this. I
expect this to work with many of the other 'broken fonts' that are found in
/usr/share/fonts/ .

Here is how I made the font work. (I basically just installed it into a 'more
standard ?' location)

1) Copy the font into a new location:

   # cd /usr/X11R6/lib/X11/fonts/TTF
   # cp /usr/share/fonts/ttf/decoratives/flubber.ttf .

2) Create a line in fonts.scale for the font, using an editor.

   # vi fonts.scale

My line looks like this (not totally correct but close enough):

flubber.ttf -b&h-Flubber-medium-r-normal--0-0-0-0-m-0-iso8859-1

The fonts.scale file is set read-only so you will have to chmod the file or
override the status (ie: w! in vi)

3) Issued the following commands to update and restart the font server.

   # mkfontdir
   # xset fp rehash
   # service xfs restart

This has worked on both of the boxes I have tried this on. (Both Mdk 9.1) I
should probably remove the old entry/location but at least this is workable. I
stumbled upon this while I was installing a new font. Like I said, it is a
hack but it works for me and I hope this will help someone else to live with
the problem or perhaps find a better solution.

I am not going to install/upgrade all of the necessary pieces to build the
latest version of Gimp, just to fix a 'broken font' problem, but I do
appreciate that advice also.

I don't understand why we have fonts in two different places in the
filesystem(s)...

YMMV,


- --
KevinO

If Microsoft built cars, If you were involved in a crash, you would have
no idea what happened.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/i6u0WOfRC7Rnmv8RAiYZAJ9C5C7Ok2fsD0ojboT9HSykqHDfjgCdGuJt
0ivPySTJM+zrhcR0SSiz9rg=
=wRti
-----END PGP SIGNATURE-----


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to