TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:10348] Truetype fonts under X 3.3.5



On Mon, 22 Nov 1999, Yaron wrote:

> I'm running the X that came with RH61. I've tried adding a directory with
> Truetype fonts in it to xfs' catalog in it's config file, but it wanted me
> to mkfontdir there... so I did, now it ignores those fonts. Any idea?

Yeah.  I've been fighting with the same thing.  I was trying to get it to
recognize my /windows/fonts directory from another partition.  Here's what I
ended up doing:

copied the fonts to a directory on my Linux partition (I'm not sure if this was
necessary, but I did it and it worked...)

ttmkfdir -o fonts.scale
mkfontdir
/usr/sbin/chkfontpath --add <dir>
shutdown X
restart xfs (I dunno if SIGHUP works here or not)

Anyway, some explanation:
ttmkfdir creates 'fonts.scale', a list of all the scalable (TT) fonts in the
directory (duh).  
mkfontdir copies fonts.scale to fonts.dir.  You could
probably skip mkfontdir and just do a 'cp fonts.scale fonts.dir' but I'm not
sure if it does anything else. 
chkfontpath adds the path to the xfs config file and performs some
verification.

My understanding originally was that you didn't need to restart either X or
xfs, but the directions I found for all this said I should, so I did.  I didn't
check to see if the new fonts were available before restarting everything.

I wish I could point you to the references I found for all of this, but they
were all over the place.  I'm really not sure if all of these steps are
necessary, but my TT fonts are available now, so I'm happy.  Now if I could
just convince WP to read all of my available fonts...

Ben
-- 
"There is no spoon"
	-- The Matrix