Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing True Type fonts on Linux - Please help

Status
Not open for further replies.

montejr

Programmer
May 24, 2001
42
0
0
US
Hi to all,
I have copied some true type fonts to my /usr/openwin/lib/X11/fonts/TrueType directory. I need to get the fonts.dir file updated. I have tried using the mkfontdir command but the file does not get updated with my new fonts. Can someone please help me as I have struggled with this for several days. I am looking for the exact syntax for this. Any help would be greatly appreciated.

Cheers,
Monte
 
1. Create the new directory (/usr/share/fonts/new_dir, in this example):


mkdir /usr/share/fonts/new_dir

2. copy the .ttf files you want to it

3. create a fonts.dir file: use the utility ttmkfdir:

cd /usr/share/fonts/new_dir
ttmkfdir >fonts.dir

4. Add the new directory to the fonts path:

chkfontpath --add /usr/share/fonts/new_dir

(take care not to add a trailing /, e.g.: no 'chkfontpath --add /usr/share/fonts/new_dir/')

5. reload the fonts server, so the configuration change will take effect:


/etc/rc.d/init.d/xfs restart
(take care not to use "stop", "start" if you have a running X server: it will hang. Using "restart" is safe)

6. If X is running, you may have to let it know about the changes to the fonts. From within X, run:


xset fp rehash

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top