if you want a guide for ttf font install:
Installing .ttf fonts in Debian/Ubuntu Linux locally
First i downloaded Manorama.ttf(india malayalam language daily) from
http://www.hackorama.com/malayalam/fonts/
then for present user,
$cd ~.fonts
$mkdir manorama
Copy Manorama.ttf font into this directory
then,
$ttmkfdir > fonts.dir
$ttmkfdir > fonts.scale
$mkfotnscale
$mkfontdir
$xset fp+ $HOME/.fonts/manorama/
$xset fp rehash
Now do an
$fc-cache -fv
Next step is to add the fontpath to our /etc/X11/xorg.conf last of font paths
like this:
> FontPath "/home/prakash/.fonts/manorama/"
Do a
> $fc-cache -fv
Now restart X and try watching in Firefox.
There are better ways to do this especially in redhat fedora..
http://www.thinkdigit.com/forum/show...?t=6029&page=2
^me only!
the Debian way/Defoma:
Debian-Installing Fonts using Defoma
In Debian, fonts can be managed by defoma, the Debian Font Manager. It
registers the Fonts to applications which tell defoma how to do this using a
plugin. Examples are gs, fontconfig and also x-ttcidfont-conf which in turn makes
the fonts available to X (see Tip 15). The advantage is that is sufficient to
register the fonts to defoma, which will take care of the rest of the configuration.
Here is a short walkthrough on how to do it:
First you copy all your TrueType fonts to a suitable directory, for example
/usr/local/share/fonts/truetype. Next you create a so called hints file for defoma
which contains informations about the fonts. You do this using the defoma-hints
program. Make sure that the libft-perl package is installed. After that you can
create the hints file:
Code:
defoma-hints -c --no-question truetype \
/usr/local/share/fonts/truetype/* \
> /etc/defoma/hints/ownfonts.hints
Now you register this file to defoma:
defoma-font register-all /etc/defoma/hints/ownfonts.hints
The last thing you have to do is to apply the new configuration. The quickest
way is to call
defoma-reconfigure
It updates the fonts database for all registered applications. To use the new fonts
in your current X session, run
Code:
xset fp rehash
fc-cache -fv