Steps common to all

For the purposes of the instructions here, we will assume that we are going to use utkalm.ttf, the freely-available font developed by Andy White and Rajesh Pradhan(see Sec. 3.3 for how to obtain this) and that we will download it to /usr/X11R6/lib/X11/fonts/TTF/. This is a standard directory for newer X servers, and thus it is convenient to simply install the Oriya font there. Of course, one can use any other directory, appropriately modifying the instructions below. For a different font, simply substitute the name of the font file for utkalm.ttf.

As super-user, copy utkalm.ttf to /usr/X11R6/lib/X11/fonts/TTF/,


  mkdir -p /usr/X11R6/lib/X11/fonts/TTF/
  cp utkalm.ttf /usr/X11R6/lib/X11/fonts/TTF/
Now, one has to make fonts.scale and fonts.dir, via,

  ttmkfdir -o fonts.scale
  /usr/X11R6/bin/mkfontdir
In case of any problems, try instead ttmkfdir with the -m option, e.g., ttmkfdir -m 100, which will discard any bad characters from the font file. You can take a look at the files to verify that utkalm.ttf has been installed:

  grep utkalm.ttf fonts.scale fonts.dir
should show something like:
  fonts.scale:utkalm.ttf -misc-utkal-medium-r-normal--0-0-0-0-p-0-iso10646-1
  fonts.dir:utkalm.ttf -misc-utkal-medium-r-normal--0-0-0-0-p-0-iso10646-1
The zeroes indicate that it is a TrueType font, and the ``iso646'' means that it is Unicode-encoded.
Gora Mohanty 2004-07-24