Search This Blog

Wednesday, April 15, 2009

Installing PUNJABI, HINDI fonts on centOS

Step 1. Download Punjabi or Hindi (.ttf) fonts
For examples - http://tdil.mit.gov.in/download/openfonts.htm
Download HINDI fonts from here - janahindi.zip
Can download from other locations.....
http://www.sikhnet.com/Gurmukhi-Fonts

Step 2. Extract .ttf file and copy it
in folder /usr/share/fonts/hindifont
If punjabi copy to it -- /usr/share/fonts/punjabifont

Step 3. Edit xfs config file so that system can find the fonts.
edit file /etc/X11/fs/config

Add line, at the end of catalogue section
/usr/local/share/fonts/hindifont,
/usr/share/fonts/punjabifont,

Step 4. Set the directory as font container, run these command from terminal
$ cd usr/share/fonts/hindifont
$ ttmkfdir -o fonts.scale
$ mkfontdir
$ fc-cache

Similarly for Punjabi fonts..

Step 5. Restart you xfs server to make these changes effective.
$ service xfs restart

3 comments:

  1. thanks...i did it with the help of your tips..!!

    ReplyDelete
  2. This only makes fonts available in GUI but not in Command Line or Vi editor... Can you please help me with this?

    ReplyDelete
  3. Vi has its predefined commands/shortcuts.
    and on command line u can use defined commands/scripts

    ReplyDelete