Issue How do I enable True Type fonts in Red Hat Linux 7? Resolution Put your True Type fonts in what ever directory you want. For example, /usr/share/truetype, then run chkfontpath like this:

chkfontpath --add /usr/share/truetype.

This will add the new font directory to your font path.

If you do not have xfs installed, you need to install it first. Put the new fonts in a directory. If you are installing Type1 fonts, prepare the new directory for the server by running type1inst in the directory. If you are installing TrueType fonts, (remember, not all distributions can use TrueType via xfs), prepare the new directory for the server by typing the following while in the directory containing your new fonts:

ttmkfdir -o fonts.scale

mkfontdir

In case you need to install it, ttmkfdir is part of the freetype package.

Now you can add the new directory to your xfs search path. Users of Red Hat-like distributions can do this with the chkfontpath utility. Other users can do this by editing their xfs configuration file.

If xfs is already installed on your system, you should see which port it is running on. You can do this with the following command:

ps ax | grep xfs.

Then check your XFree86 font path with this command:

xset -q

If your font path includes something like unix:/port_number, where port_number is the port on which the server is running. Then you already have xfs set up properly. Otherwise, you should add it to your XFree86 font path with these commands:

xset fp+ unix/:port_number

xset fp rehash

NOTE: port_number is a numerical value.

You can add it permanently by editing your .xinitrc as mentioned earlier. To add it system-wide, edit your XF86Config file (either under /etc/X11/XF86Config, /etc/X11/XF86Config-4, /etc/XF86Config, or B>/usr/X11R6/lib/X11/XF86Config), by adding the following line to the "Files" section:

FontPath "unix/:port_number"

Here is an example of how it should look:

...

Section "Files"

...

FontPath "unix/:-1"

...

EndSection

...

If xfs is already properly installed, then you can restart it like this as root:

service xfs restart

After restarting xfs, it is a good idea to restart your X session.