Install Microsoft TrueType Fonts in Fedora and Ubuntu

When it comes to typography, Microsoft TrueType fonts are both visually appealing and aesthetically pleasing. They’re found all over the web, usually specified in stylesheets. Unfortunately for Linux users, the most common TTFs aren’t installed (by default, that is). Instead, they are replaced by generic equivalents. With these font packages installed, you will see websites as the designer intended.

The Microsoft TrueType fonts package includes:

  • Andale Mono
  • Arial Black
  • Arial (Bold, Italic, Bold Italic)
  • Comic Sans MS (Bold)
  • Courier New (Bold, Italic, Bold Italic)
  • Georgia (Bold, Italic, Bold Italic)
  • Impact
  • Times New Roman (Bold, Italic, Bold Italic)
  • Trebuchet (Bold, Italic, Bold Italic)
  • Verdana (Bold, Italic, Bold Italic)
  • Webdings

Installing MS TrueType fonts in Ubuntu

You can install the MS core fonts by installing the msttcorefonts package. You will need to enable the “Universe” component of the repositories (done by default in Feisty & Hardy). After that, run the following from the command line:

[code]
$sudo apt-get install msttcorefonts
[/code]

While this gives you the core fonts, it also gives you the ability to install any other font by simply copying the .TTF to the ~/.fonts/ directory.

When installing new fonts, you’ll need to re-login to be able to see & use them. Optionally, this step can be bypassed by regenerating the fonts cache with:

[code]
$sudo fc-cache -fv
[/code]

Installing MS TrueType fonts in Fedora

Yep, a few extra steps in Fedora, but still a cinch. From the shell:

[code]
cd /tmp
wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec
yum install rpm-build cabextract
rpmbuild -ba msttcorefonts-2.0-1.spec
yum localinstall –nogpgcheck \
/usr/src/redhat/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm
[/code]

That should do it. Reinitialize the font cache, re-login or reboot and have another look at this site (with Georgia).

About Benjamin Perove

Ben has been associated with a broad spectrum of technologies starting from an early age, and he's contributed to the success of many businesses and enterprises professionally since 2001. Most of his time is spent building cool stuff. When he's not working, he enjoys reading, playing acoustic guitar, and being with friends. He currently resides in Medellin, Colombia.

  • Pingback: Patrik DuditÅ¡ » Blog Archive » Setting up Acer Aspire One()

  • Chris

    Thanks I can confirm it work on my aspire one after a reboot.

    I had to change the –nogpgcheck to –nogpgcheck to get the last 2 statements to work however

  • Chris

    Thanks I can confirm it work on my aspire one after a reboot.

    I had to change the –nogpgcheck to –nogpgcheck to get the last 2 statements to work however

  • http://astropope.com iceolate

    For anyone that’s interested, it’s available in the FreeBSD ports under

    /usr/ports/x11-fonts/webfonts

  • http://caminarconcristo.wordpress.com Sergio

    I have followed the instructions and successfully installed the fonts in my Acer Aspire One netbook.

    The last command, however, requires a previous tweaking. First you have to open the yum configuration file as root:

    sudo mousepad /etc/yum.conf

    Then change the line containing “gpgcheck=1″ replacing the 1 by a 0 (zero). Save file.

    Now you can proceed to the last command. By the way, the command you have to type to update the font cache is

    sudo fc-cache -f -v

    That should be enough!

  • http://caminarconcristo.wordpress.com Sergio

    Sorry, I forgot to remind you to undo the change in the yum configuration file once you have your fonts installed (i.e, restore the 1 in the gpgcheck line).

  • Pingback: installing msttcorefonts on Fedora 13 (fixing Wine problem) « Undercover Tech Guy()

  • ABCABC

    yum install ttmkfdir is required now also on fedora

  • http://amirulabu.com mirul

    there are 2 dash for nogpgcheck

    –nogpgcheck not -nogpgcheck

  • Anup

    Few additions for fedora (I am using FC 15 x86_64)

    1. If you encounter :

    error: Failed build dependencies:
    /usr/bin/ttmkfdir is needed by msttcorefonts-2.0-1.noarch
    cabextract is needed by msttcorefonts-2.0-1.noarch

    Then you need to install :
    yum install cabextract ttmkfdir

    rpm build should work now (unless you are missing some more dependencies)

    2. RPMBUILD stored mstt*.rpm in /root/rpmbuild on my fedora
    path: /root/rpmbuild/RPMS/noarch

    I encountered another dependency on installing it.
    yum localinstall –nogpgcheck msttcorefonts-2.0-1.noarch.rpm
    Error: Package: msttcorefonts-2.0-1.noarch (/msttcorefonts-2.0-1.noarch)
    Requires: /usr/sbin/chkfontpath

    check if you can find chkfontpath in your yum repo. –> yum search chkfontpath. Otherwise, you can download the relative version from rpm.pbone.net

    I didnt find it yum repos, so I downloaded the file from rpm.pbone.net
    cd /usr/local/src/
    wget ftp://ftp.pbone.net/mirror/atrpms.net/f15-x86_64/atrpms/stable/chkfontpath-1.10.1-2.fc15.x86_64.rpm
    yum localinstall –nogpgcheck chkfontpath-1.10.1-2.fc15.x86_64.rpm

    yum localinstall –nogpgcheck msttcorefonts-2.0-1.noarch.rpm
    Running Transaction
    Installing : msttcorefonts-2.0-1.noarch 1/1

    Installed:
    msttcorefonts.noarch 0:2.0-1

    Complete!

  • http://Www.Chuvsu.ru/~wiki/index.php/%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:BettieZ56 tdt premium cardsharing

    Its not my first time to pay a quick visit this site, i am visiting this web
    site dailly and get fastidious facts from here daily.

Got WordPress Security?

You will definitely wish you had downloaded my top 5 recommendations when you're cleaning out malicious Javascript from deep within you WordPress site. Enter your email and get the PDF right now, before it's too late.