How to install free Google fonts on Linux (and why you should)

[ad_1]

colorful letters falling

Catherine Falls Commercial/Getty Images

When I’m designing book covers and other digital assets, having the right font can really save the day. And although there are times when I’ve had to purchase a font or two (because I needed something very specific), most of the time free and/or open-source fonts will do the trick.

Also: Elive 3.8.34: A thing of beauty that any old-school Linux user would love

That’s why, one of the first places I turn for fonts is Google. 

You might not know this, but Google has a pretty good collection of fonts that can be used for free. In fact, Google has a website specifically for fonts, called (aptly) Google Fonts. On that site, you’ll find plenty of fonts to choose from. And given how few artistic fonts ship with most Linux distributions, Google’s collection can mean the difference between a boring and exciting document. 

But how do you install those fonts on Linux? It’s not nearly as hard as you might think. Let me walk you through the process. 

How to install Google fonts on any Linux distribution

What you’ll need: The only things you’ll need for this are a running instance of Linux and a user with sudo privileges. That’s it. Let’s get to work.

The first thing you’ll need to do is head over to the fonts.google.com site and download the font(s) you want to use. These files will be in zip format. Save them to your ~/Downloads directory and do not unzip them yet.

Let’s create a new directory to house the fonts with the command:

sudo mkdir -p /user/share/fonts/googlefonts

Change into the new directory with the command:

cd /usr/share/fonts/googlefonts

Let’s say you’ve downloaded the Poiret One font. The filename for that font is, Poiret_One.zip. To extract that downloaded file into the googlefonts directory, the command will be:

sudo unzip -d . ~/Downloads/Poiret_One.zip

The -d option instructs unzip where the destination directory is and the . informs the command that the destination is the current directory (which is /usr/share/fonts/googlefonts). You’ll be prompted for your sudo password. When the extraction completes, you’ll find the PoiretOne-Regular.ttf font in the /usr/share/fonts/googlefonts directory.

Finally, you’ll need to register the new font with the system. To do that, issue the command:

Once the new font is registered, you’ll be able to use it with any app on your desktop. Continue downloading Google Fonts and add them to your system until you have everything you need to create the documents or images necessary to get the job done.



[ad_2]

Source link