Tuesday, April 28, 2009

How to install Microsoft Core Fonts

Microsoft Core Fonts

These fonts need to be built from the web so you will build an rpm package based on a SPEC file.

su -c 'yum install wget rpmdevtools rpmbuild cabextract ttmkfdir'
  • Then create the rpmdev directory
rpmdev-setuptree
  • Switch to your SPECS directory that you created in the previous step.
cd ~/rpmbuild/SPECS/
  • Download the spec file.
wget http://dl.atrpms.net/all/chkfontpath-1.10.1-2.fc9.x86_64.rpm
wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec
  • run the following command to build the rpm
rpmbuild -bb msttcorefonts-2.0-1.spec
  • Move to where the msttcorefonts rpm was created
cd ~/rpmbuild/RPMS/noarch/
  • Download and install the msttcorefonts and dependencies
su -c 'rpm -ivh chkfontpath-1.10.1-2.fc9.x86_64.rpm'
su -c 'rpm -ivh msttcorefonts-2.0-1.noarch.rpm'
  • Then run the following code to restart the font server.
su -c '/sbin/service xfs reload'

Or

su -c '/etc/init.d/xfs reload'

No comments: