Click to See Complete Forum and Search --> : Installing TrueType Fonts on Slackware


digitalzero
01-20-2001, 03:21 PM
Are you actually able to copy ttf fonts from windows and then using them in linux. I did this and I want to install them to linux X windows so taht netscape actually looks decent. I checked out the nhf, did it but some commands didnt work. Maybe cause the NHF was for RH. Well anyways, can anyone tell me how to install these ttf files. I have it under my /usr/X11/lib/fonts/ttf directory.
So far what i did was:
1. cd /usr/X11/lib/fonts/ttf
2. mkfontdir
3. xset fp+ /usr/X11/lib/fonts/ttf
4. xset fp rehash
5. added the location of the ttf font folder to my XF86Config file.
6. Restarted X and it still wont work.
Please help.

sssadams
01-20-2001, 07:38 PM
copy all your fonts to /usr/share/fonts/truetype
make shure they are all small case
run mkfontsdir ???(I am in Winblows2000 DC)
xfstt --sync
xfstt &
xset fp+ inet/localhost:7101
if that works put a line in your XF86Config file
FontPath= "unix/:7101"
put the two xfstt commands above in rc.local

digitalzero
01-21-2001, 03:44 AM
Ok I did the mkfontdir and that was ok.
I downloaded the xfstt font server and all was ok.
When I did a
xset fp+ unix/:7101
or the one u specified, it said:
1. Dir does not exist or incorrect permissions
2. Missing font.dir
3. Incorrect font server address
I dont think it's the first and second cause i did a chmod a+x truetype and I did a mkfontdir for truetype. I'm assuming it's the third one.
And when I do a xfstt it says cant open port, better try another port.
Anyone know what to do?

[This message has been edited by digitalzero (edited 21 January 2001).]

sssadams
01-21-2001, 01:08 PM
did you mkfontdir while inside the /usr/share/fonts/truetype directory as root
if so issuing xfstt --sync will output that it has found x# of fonts then you just need to issue xfstt & and xset ... in a term and it should work.If not something is no right.My permissions for the directory are rwxr-xr-x and for the fonts r--r--r--