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!

How do I install fonts in Red Hat 7.0

Status
Not open for further replies.

Azarey

Programmer
Aug 17, 2001
7
0
0
JM
I'd like to know how to install fonts in Red Hat 7.0.
Any help will be grealy appreciated.
 
Hi,



With redhat 7.x , you should be using the xfs (X font server). The config file for xfs is /etc/X11/fs/config and you will see a 'catalogue' section something like this :



catalogue = /usr/X11R6/lib/X11/fonts/misc:unscaled,

/usr/X11R6/lib/X11/fonts/75dpi:unscaled,

/usr/X11R6/lib/X11/fonts/misc,

/usr/X11R6/lib/X11/fonts/Type1,

/usr/X11R6/lib/X11/fonts/Speedo,

/usr/X11R6/lib/X11/fonts/75dpi,

/usr/share/fonts/default/Type1,

/usr/share/abisource/fonts,

/usr/share/fonts/ja/TrueType,

/usr/share/AbiSuite/fonts,

/usr/X11R6/lib/X11/fonts/winfonts

Those are the directories containing fonts that the font-server will use.

To install fonts generally you copy them to a directory then run 'mkfontdir' in that directory. To install windoze truetype fonts do something like this (as root) :

mkdir /usr/X11R6/lib/X11/fonts/winfonts
cp /mnt/hda1/windows/fonts/*.ttf /usr/X11R6/lib/X11/fonts/winfonts
cd /usr/X11R6/lib/X11/fonts/winfonts
ttmkfdir -o fonts.scale
mkfontdir

Then add that directory to your 'catalogue' in /etc/X11/fs/config and restart the xfs server :

/etc/rc.d/init.d/xfs restart

Make sure you have xfs set to run automatically at runlevel 5 :

/sbin/chkconfig --level 5 xfs on

For maximum font fun see -->
You might also be interested in a perl utility for grabbing M$ webfonts -->
Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top