Although the idea of putting something from Microsoft on a Linux box might sound awful at first, you may find a reason to use Microsoft TrueType fonts on a Linux server. If you’re using GD to render an image, these fonts may come in handy.
If you have an RPM-based linux distribution, you can use a spec file that is available on SourceForge. You can follow the instructions on the project’s page, or you can follow these abbreviated instructions here:
Install some prerequisites:
// RHEL 4 up2date -i rpm-build wget ttmkfdir // RHEL 5 yum install rpm-build wget ttmkfdir
Build the RPM:
wget -O /usr/src/redhat/SPECS/msttcorefonts-2.0-1.spec http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec rpmbuild -bb msttcorefonts-2.0-1.spec rpm -Uvh /usr/src/redhat/SPECS/msttcorefonts-2.0-1.spec
Test it to be sure that they’re installed:
xlsfonts | grep ^-microsoft rpm -ql msttcorefonts