Click to See Complete Forum and Search --> : Adding fonts to X


Marcel2008
09-10-2001, 01:02 PM
Hello,

I want to add fonts to X.

How do i include the .fon and .ttf fonts?

Can i copy and paste them from windows?

Thanks!

2thumbs
09-10-2001, 02:26 PM
here's what I do:

mkdir /usr/X11R6/lib/X11/fonts/ttf
mount /mnt/win2kAS
cp /mnt/win2kAS/WINNT/fonts/* /usr/X11R6/lib/X11/fonts/ttf
cd /usr/X11R6/lib/X11/fonts/ttf
mkttfdir > fonts.scale
mkfontdir

then open up /etc/X11/XF86Config-4 and look for the FontPath line and add your path. Like so:
FontPath "unix/:-1,/usr/X11R6/lib/X11/fonts/ttf"
Refire X and you'll have your new fonts. Oh, and there's one font in W2k that's boinked and X will lock when you try to open fixed width fonts. I think it's called palamino or something like that. I have to delete that before the mkttfdir thing. Hope that helps.

[ 10 September 2001: Message edited by: 2thumbs ]

Marcel2008
09-10-2001, 02:53 PM
Thanks but:
mkttfdir: command not found?

I use redhat 7.1

2thumbs
09-10-2001, 02:57 PM
try using ttmkfdir > fonts.scale :o