Installing Liberation fonts on Linux

By   |  May 30, 2007

Red Hat recently released a set of free fonts designed to be a metrically-exact replacement for the Microsoft Core TrueType fonts. Installing fonts on Linux, however, has not always been the easiest of tasks so Tectonic dug around a little to make a simple guide to installing these, and other, fonts on most flavours of Linux.

The first thing to do is get you hands on the fonts you want to install. Red Hat’s Liberation fonts can be found here. These are TrueType fonts so they will need to be installed in the appropriate folder.

Once downloaded and uncompressed:

sudo gunzip liberation-fonts-ttf.tar.gz

and

sudo tar -xvf liberation-fonts-ttf.tar

create a folder for them. We created the directory /usr/share/fonts/truetype/liberation and copied the Liberation fonts into that directory.

Next we changed the ownership of the .ttf files to root with the command:

sudo chown root.root *.ttf

And, finally, we regenerated the font cache:

sudo fc-cache

The font cache would also be regenerated when you rebooted your machine but this is Linux and most of us prefer to enjoy not having to reboot the whole time.

Once this is done your new fonts should be installed and ready to go. Karl Fischer has done a nice comparison of these fonts and the Microsoft Core fonts they replace. Thanks to GrumpyMole.

Comments

2 Responses to “Installing Liberation fonts on Linux”

  1. alanm
    June 1st, 2007 @ 12:00 am

    Gentoo users have it even easier :-)

    Put this ebuild into your local overlay and emerge it (if you are using Gentoo, you know how to do personal overlays, right?)

    inherit gnome.org font

    DESCRIPTION=\”Replacement fonts for Arial, Courier & Times New Roman from Red
    Hat\”
    HOMEPAGE=\”https://www.redhat.com/promo/fonts/\”
    SRC_URI=\”https://www.redhat.com/f/fonts/liberation-fonts-ttf-2.tar.gz\”
    LICENSE=\”GPL-2-with-exceptions\”

    SLOT=\”0\”
    KEYWORDS=\”~x86\”
    IUSE=\”\”

    S=\”${WORKDIR}\”
    FONT_S=\”${S}\”

    FONT_SUFFIX=\”ttf\”

    DOCS=\”COPYING License.txt\”

  2. reson
    June 22nd, 2007 @ 12:00 am

    uppercase LAZY is missing in the compAriZon!

Comments are closed