Home > Uncategorized > MS TrueType Fonts on CentOS 5

MS TrueType Fonts on CentOS 5

Microsoft TrueType fonts are used by most websites so it’s often useful to install them under Linux. No doubt due to licensing restrictions, there is no RPM to install them directly under CentOS, but it’s not that complicated forllowing these instructions:

1. Install the software needed. You may need the DAG rpm repository to install cabextract – see my “Must-Have Repos” post for details.

sudo yum install rpm-build cabextract

2. Download the specs to build the RPM

wget https://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec

3. Build the RPM

rpmbuild -ba msttcorefonts-2.0-1.spec

4. Install the RPM

rpm -ivh /usr/src/redhat/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm

To use the fonts with ImageMagick, I also needed to create a link to the font installation folder as follows:

ln -s /usr/share/fonts/msttcorefonts/ /usr/share/fonts/default/TrueType

Categories: Uncategorized Tags:
  1. No comments yet.
  1. No trackbacks yet.