Friday, July 24, 2009

Add MS Fonts to your Fedora linux

This Steps are from Fedora FAQs HERE

here's how:

1- Install the chkfontpath package from ATrpms. (Click on either the i386 or x86_64
package, depending on whether you have a 32-bit or 64-bit machine.)

2- Open a Terminal
3- Become root : write su - in the terminal
4- Install some packages you'll need for the following steps:
  • yum install rpm-build
  • yum install rpm-build cabextract ttmkfdir wget
5- Download the MS Core Fonts Smart Package File:
  • wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec
6- Build the Core Fonts package:
  • rpmbuild -ba msttcorefonts-2.0-1.spec
7- install core fonts package
  • yum localinstall --nogpgcheck /root/rpmbuild/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm

2 comments:

Mohammed Saudi said...

7. Install Microsoft fonts
Fedora uses Liberation and DejaVu fonts which are installed by default and look pretty smooth and nice, plus they are open source.
If you insist on using the Microsoft fonts you can download and install the msttcorefonts rpm like this.

wget http://www.my-guides.net/en/images/stories/fedora12/msttcore-fonts-2.0-3.noarch.rpm
su -c 'rpm -ivh msttcore-fonts-2.0-3.noarch.rpm'


I built it myself using the msttcore-fonts-2.0-3.spec from Fedora-devel mailing list. It includes Arial, Andale, Comic Sans, Courier New, Georgia, Impact, Tahoma, Times, Trebuchet MS, Verdana and Webdings fonts.

The procedure just in case you want to build it yourself is the following.

su -c 'yum install rpmdevtools rpm-build cabextract'
rpmdev-setuptree
cd ~/rpmbuild/SPECS/
wget http://www.my-guides.net/en/images/stories/fedora12/msttcore-fonts-2.0-3.spec
rpmbuild -bb msttcore-fonts-2.0-3.spec
cd ~/rpmbuild/RPMS/noarch/
su -c 'rpm -ivh msttcore-fonts-2.0-3.noarch.rpm'


Now you can change your fonts through System -> Preferences -> Appearance -> Fonts

Mohammed Saudi said...

I forgot the source :
http://www.my-guides.net/en/content/view/174/26/2/4/