Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've just installed Fedora 15 and here is some troubles with fonts. How can I install MS fonts?

share|improve this question
add comment

7 Answers

up vote 8 down vote accepted

This is slightly modified from the instructions found here (and I haven't even checked if they work):

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

  2. As root, install some packages you'll need for the following steps:

    yum install rpm-build cabextract ttmkfdir wget
    
  3. Download the MS Core Fonts Smart Package File:

    wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec
    
  4. Build the Core Fonts package:

    rpmbuild -ba msttcorefonts-2.0-1.spec
    
  5. Install the Core Fonts package:

    yum install --nogpgcheck /root/rpmbuild/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm
    
share|improve this answer
1  
RPM building shouldn't be done as root, in general. The only parts of this that need to be done as root are the yum operations. And building a random, unreviewed specfile as root or non-root is somewhat dangerous. –  mattdm Aug 8 '11 at 14:54
    
And not necessarily more importantly from an overall standpoint, but definitely from a practical one, chkfontpath as used in this specfile is no longer in Fedora, so this won't work without modification. –  mattdm Aug 8 '11 at 14:57
    
@mattdm: I didn't mean for wget and rpmbuild to be run as root. –  Tshepang Aug 8 '11 at 16:34
    
@mattdm: can you edit the question. It was merely a copy-paste... I don't really know the details. –  Tshepang Aug 8 '11 at 16:35
1  
I had to comment lines 19, 20, 21 and 22 because when you run the rpmbuild error was obsolete instructions –  X3MBoy Aug 17 '11 at 0:47
add comment

With the modern font libraries, this is easy. The best way is to simply get the .ttf files you want and drop them into ~/.fonts in your home directory. (If that doesn't exist, create it.)

Then, they should be available to your applications. This is per-user rather than system-wide (which you get with the msttcorefonts package), but has some advantages — you don't have to build an RPM, for one, and second, if you preserve your home directory when you upgrade to Fedora 16, they'll still be there and still just work.

share|improve this answer
add comment

I had problems with Tshepang's method, but this worked for me (source):

cd /usr/local/src/
wget http://fedora.missingbox.co.nz/core-fonts.rpm
yum localinstall --nogpgcheck core-fonts.rpm
share|improve this answer
add comment

You can use mjmwired's msttcorefonts package or atleast his SPEC to build it yourself. http://www.mjmwired.net/resources/mjm-fedora-f15.html#ttf

share|improve this answer
add comment

Try this instead:

rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.2-1.noarch.rpm

This RPM installs the fonts from SourceForge at install time, it does not contain the fonts. In addition, it pulls in updated fonts from the EUupdate font set, and installs the fonts correctly to X core and Xft.

share|improve this answer
add comment

You need also rpmdevtools to build rpm.

su -c "yum install rpmdevtools rpm-build cabextract ttmkfdir"

http://forums.fedoraforum.org/showthread.php?t=273302

share|improve this answer
add comment
yum -y localinstall http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm && yum -y update --nogpgcheck && yum -y install freetype-freeworld wget cabextract fontconfig xorg-x11-font-utils && wget http://repo.missingbox.co.nz/repo/linux/msfonts/1.2/msfontinstaller.sh && sh msfontinstaller.sh
share|improve this answer
    
Do explain a little bit about the whole command. –  mtk Jan 16 '13 at 10:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.