Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005

    how to install font in redhat linux 9

    i am using redhat linux 9 and i want to install preeti font and use it with Qt.
    PLZ somebody tell me how can i do this?

  2. #2
    Just Joined!
    Join Date
    Apr 2005
    Prepare a directory for your fonts

    Note: Some of these instructions have to be carried out as the root user.

    Ideally, create a new directory for your truetype fonts. Normally I create a directory /usr/local/fonts/ttf, but you can choose any directory you want. This directory should be accessible (but not writeable) by all users.

    In the following instructions I use this directory name - if you choose another you should adapt the instructions accordingly.
    Copy your fonts

    Now, copy all the truetype fonts (*.ttf) that you need into this directory.

    If you want to copy the files from the Windows partition, these fonts are normally stored in the windows/fonts directory, or winnt/fonts in the case of Windows NT or 2000.

    If you have downloaded fonts as a ZIP file you must use the archiver or the unzip command to extract the font files first. Some self-extracting ZIP executables can also be extracted using the unzip command.
    Telling XWindows about your fonts

    Now, enter the following commands in sequence from a terminal window:

    cd /usr/local/fonts/ttf
    ttmkfdir > fonts.scale

    If you view the directory you should now see two new files among the truetype fonts - "fonts.scale" and "fonts.dir". These files simply contain a list with the full font names for each truetype font.

    Finally, you have to add the newly set up directory to the list of locations which XWindows will search for fonts.
    If you have chkfontpath

    RedHat users can enter the following command to add the directory:

    chkfontpath -a /usr/local/fonts/ttf

    If you don't have chkfontpath

    If you don't have the chkfontpath command, you will have to edit the file /etc/X11/xfs/config (or /etc/X11/fs/config), find the line which starts with "catalog=", and add your directory at the end of the list, separated by a comma.

    That's it! You can test it now by running the xfontsel program from the terminal, or run the "Font Selector" program from the Utilities menu in Gnome. You should immediately see the truetype font names in the list of fonts.

    In older versions of XWindows you may need to restart the font server for it to register the new fonts. The easiest way to do this is to reboot.
    Adding more fonts

    If you add more fonts to the directory you have to re-run the following commands to regenerate the fonts.dir file:

    ttmkfdir > fonts.scale

    You do not have to rerun the chkfontpath command - that is only done when you have a new directory to add.

    Taken from:

  3. #3
    I have done these steps. But no fonts is added.

  4. $spacer_open
  5. #4


    The above is not working so i tried this
    In GNOME you can open Nautilus and type fonts:/// in the address bar and simply drop them in there, once X is restarted they should work. Or you can put them in a proper dir in /usr/share/fonts yourself and they should work as well when X is restarted.

    but by droping it is not showing there
    please any one help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts