Make sure you have the following rpm-packages installed from from your favourite distribution. Any version should do.
* A package that provides the ttmkfdir utility. For example
o For redhat-7.3 and redhat-8.0, XFree86-font-utils
o For redhat-7.0, freetype
o For mandrake-8.2, freetype-tools
Download and install the cabextract utilility from here. If you're not on an x86 box, please have a look at the source rpm instead. Users of other distributions should have a look here
Download the latest msttcorefonts spec file from here
Edit the msttcorefonts.spec file with your favourite editor. Everything that needs to be changed is commented clearly in the beginning of the file.
The original specfile only contains references to fonts covered by the "core fonts for the web" license agreement which, among other things, permits redistribution in unaltered form. However, microsoft also makes other fonts available as a part of their Internet Explorer product (notably the Tahoma font). The license agreement of Internet Explorer states that you need to have a Windows license to have the right to install Explorer or (as I understand it) any part of it.
So, if you have a windows license and you accept the other restrictions in the IE EULA, you are are free to change the define HAS_WINDOWS_LICENSE to 'yes', and the tahoma font will be included also
Build the binary rpm with this command:
$ rpmbuild -bb msttcorefonts-1.3-4.spec
This will download the fonts from the Sourcforge mirror of your choice (about 5 megs) and repackage them so that they can be easily installed.
By default rpm builds packages in a directory that only root has write access to. However, by adding the following line to a file called .rpmmacros in your home directory you can build rpm packages in another location than the system wide default.
Replace YOURHOMEDIR with your home directory. If you're unsure of what is, use the command echo ~ to find out. For this to work you also need to create the directories $HOME/rpm, $HOME/rpm/RPMS/noarch and $HOME/rpm/BUILD
Install the newly built rpm using the following command (you will need to be root):
# rpm -ivh $HOME/rpm/RPMS/noarch/msttcorefonts-1.3-4.noarch.rpm
You might need to reload the X font server. Normally this is done as a part of the installation process (this is done by chkfontpath). However in some situations it seems like you need to reload or restart the font server manually. I am told that the last argument needs to be restart and not reload on Mandrake 9.0
# /sbin/service xfs reload
A bug in RedHat 8.0 makes the X server lose the connection to the font server if the font server is restarted instead of reloaded. That will cause assorted strange behaviour (changed fonts in newly opened applications, applications hanging). Logging out and logging in again will solve the problems, or just use 'reload' instead of 'restart'.
9. Enjoy your new high quality fonts. To verify that the installation succeeded, please use the command 'xlsfonts | grep ^-microsoft'. You should see a whole lot of microsoft font names there. Please note that you need to restart all programs that you want to make aware of the new fonts. Note also that not all fonts have 'microsoft' in their name, some of them will be from 'monotype' instead.
I got to step 7, im running mandrake 10.0 and I go in the terminal to type the command and it dosent work
[robert@localhost robert]$ rpmbuild -bb msttcorefonts-1.3-4.spec
bash: rpmbuild: command not found