fedora-font-install

From http://penguinfonts.com/howto/fedora.php

HOWTO Install fonts on Fedora Core

1. Installing fonts for single login use

1a. using kfontview 1b. by hand 2. Installing fonts for system wide use 3. Installing Microsoft Windows Fonts (eg. Times New Roman)

1. Installing fonts for single login use 1a. using kfontview The easiest way to install fonts is using kfontview. Try running "kfontview" from the command line. If you do not have kfontview installed, as root run: # yum install kdebase This will download a few dependencies, so if you are short on disk space or simply do not want to install KDE, use the instructions in step 1b

Run "kfontview" from the command line From the kfontview window, open the font you have downloaded. Click on the "Install" button NOTICE: You will probably need to resize the window to see the "Install" button which is in the lower right hand corner. Click on the "Personal" button

Your font should now work!

1b. by hand If ~/.fonts does not exist, create it: $ mkdir ~/.fonts Copy the font, from the command line, run the following: $ cp [fontfile] ~/.fonts From the command line, run the following: $ fc-cache -f -v ~/.fonts or alternatively, log out, and log back in.

2. Installing for system wide use As root, create the fonts directory: # mkdir /usr/share/fonts/myfonts Copy the font files in: # cp [fontfiles] /usr/share/fonts/myfonts cd into the fonts directory: # cd /usr/share/fonts/myfonts Make fonts.dir: # ttmkfdir -c Copy fonts.dir to fonts.scale: # cp fonts.scale fonts.dir Add the font path: # /usr/sbin/chkfontpath -q --add /usr/share/fonts/myfonts Now update the font-config cache: # fc-cache -f -v

To add fonts in the future, just run: # /usr/sbin/chkfontpath -q --remove /usr/share/fonts/myfonts # cp [fontfiles] /usr/share/fonts/myfonts # cd /usr/share/fonts/myfonts # ttmkfdir -c # cp fonts.scale fonts.dir # fc-cache -f -v # /usr/sbin/chkfontpath -q --add /usr/share/fonts/myfonts

3. Installing Windows Fonts (eg. Times New Roman) If you are looking into install the windows fonts (such as Times New Roman) on Fedora Core, Run the following as root: rpm -vi ftp://ftp.pbone.net/mirror/www.haoli.org/pub/redhat-7.x/RPMS/noarch/msttcorefonts-1.2-3.noarch.rpm

Or you can build the rpm package, based on http://corefonts.sourceforge.net. First install cabextract, which is part of the Fedora extras repo. This should be configured by default. Run the following commands as root: # yum install cabextract Then get the spec file which has been modified specifically for Fedora: # wget http://penguinfonts.com/packages/msttcorefonts-fedora.spec Build the rpm: # rpmbuild -ba msttcorefonts-fedora.spec Install the resulting rpm: # rpm -i /usr/src/redhat/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm