Linux Know-How provides a collection of introductory texts on often needed Linux skills. |
Home Newbie Guide Administrator FAQ Working with X-windows Installing TrueType Fonts | ||
Search the VIAS Library | Index | ||
Installing TrueType FontsSome distributions come with a TrueType font server but no (or a limited choice of) TrueType fonts. You can install your own TrueType fonts though. Here is how I did it manually. Mandrake includes a GUI utility to transfer you MS Windows fonts to Linux, so you don't have to bother with the procedure below.
rpm -q freetype This queries (option "q") the rpm package manager for the package "freetype". If the package is installed, go to next step. If "freetype" is not installed, install it now from your distribution CD. "freetype" was installed on my system after a "full" RH installation.
cd /usr/X11R6/lib/X11/fonts mkdir TrueType This directory is referred to in the configuration file /etc/X11/XF86Config so make sure that the name of the directory is exactly as shown. If you would like to name the directory differently, you have to edit /etc/X11/XF86Config and make appropriate adjustments. My "default installation" RedHat contained such a line: FontPath "/usr/X11R6/lib/X11/fonts/TrueType"
cd /usr/X11R6/lib/X11/fonts/TrueType cp /mnt/dos_hda1/windows/fonts/my_private_fonts/*.ttf . Before copying any fonts, make sure that it does not violate your licence agreement.
cd /usr/X11R6/lib/X11/fonts/TrueType ttmkfdir > fonts.dir cp fonts.dir fonts.scale
/etc/rc.d/init.d/xfs stop /etc/rc.d/init.d/xfs start
This parts is based on: http://www.computerbits.com/archive/20001000/linux0010.htm
|
||
Home Newbie Guide Administrator FAQ Working with X-windows Installing TrueType Fonts |