[Fsf-india] Integrating TTF fonts to GNU/Linux - HOWTO

CK Raju ckra@vsnl.net
Mon, 04 Feb 2002 21:42:19 +0530


Friends,

Here's how I integrated them on GNU/Linux as root.

Step 1 :
 Created a new directory 'TrueType' under /usr/X11R6/lib/X11/fonts.

Step 2 :
 Added the pathname to the configuration file (XF86Config) wherever it
is
(under /etc or /)

Step 3 :
 Copied all ttf fonts taken from Windows fonts directory to the newly
created
TrueType directory under GNU/Linux.

Step 4 :
 (Here's where most of the documentation on them went wrong.)

 Under /usr/X11R6/lib/X11/fonts/TrueType,
 # ttmkfdir -m 100 -o fonts.scale

Step 5 :
 # tac fonts.scale > fonts.dir

Step 6 :
 Edit the file fonts.dir and go to the last line where a decimal number
would
be listed. Cut it from there and paste the number as the first line on
this
file and then save. (Remove it and make it the first line)

Step 7 :
 # cat fonts.dir > fonts.scale

Step 8 :
 Restart X server.

SAY CHEERS and GET GOING !!!

RE-DEDICATE YOURSELF TO A CAUSE. PROMOTE GNU/LINUX.

Regards to all,
CK Raju,
Kerala Institute of Local Administration.

-------------------------------------------------------