HowTo Install Fonts

On Linux

for installing fonts
say you have a fontfile called Gargi.ttf
then give a command to copy fonts to /usr/share/fonts/default/TrueType in the font directory .
to create directory
mkdir /usr/share/fonts/default/TrueType (if dir does not exist create it)

then to copy font file assuming font file is in your current directory

e.g. cp Gargi.ttf /usr/share/fonts/default/TrueType

then to install fonts

ttmkfdir > fonts.scale
mkfontdir

Change to font truetype directory

cd /usr/share/fonts/default/TrueType

to add fontpath so that system automatically looks up the font

xset +fp `pwd` (or add /usr/share/fonts/default/TrueType to XF86Config)
Alternatively to add fontpath to system you may issue following command

fc-cache
if you are using RedHat 9.0 or later then you can check for fontpath
chkfontpath --add /usr/share/fonts/default/TrueType

if the path is correctly set, you will see your fontpath

/usr/share/fonts/default/TrueType in Listings
You can also find if the font is already installed by giving following command

fc-list
fc-list shows all the installed fonts in that look for
Gargi:style=Medium