Is it possible to download all google fonts and have them available under Ubuntu? This would help my webdev.

  • I stopped at downloading and checking the script. If the command itself errors out or does not work leave a comment since this is from a 2011 source.
    – Rinzwind
    Nov 11, 2015 at 15:37

3 Answers 3


An easier method is to get them directly from Github: https://github.com/google/fonts/tree/master/apache. Each font has its own subdirectory, with uncompressed font files.

There's also a ZIP file of them available from the main https://github.com/google/fonts#readme page.

So, if you want to script this stuff (e.g. regularly download the latest version), you can do it with a Git checkout, or by using wget or curl to pull down the exact files you want.

PS: This thread is a dup of "How do I install fonts?".


If you trust webupd8:

cd ~/Downloads && wget http://webupd8.googlecode.com/files/install-google-fonts
chmod +x install-google-fonts

In case anyone need to check without downloading: this is the source code for "install-google-fonts":

$ more install-google-fonts 
# Original author: Michalis Georgiou <[email protected]>
# Modified by Andrew http://www.webupd8.org <[email protected]>

sudo apt-get install mercurial


echo "Connecting to Mercurial server...."
if [ -d $_hgrepo ] ; then
    cd $_hgrepo
    hg pull -u || return 1
    echo "The local files have been updated."
    cd ..
    hg clone $_hgroot $_hgrepo || return 1
echo "Mercurial checkout done or server timeout"
sudo mkdir -p /usr/share/fonts/truetype/google-fonts/
find $PWD/$_hgrepo/ -name "*.ttf" -exec sudo install -m644 {} /usr/share/fonts/t
ruetype/google-fonts/ \; || return 1
fc-cache -f > /dev/null
echo "done."
  • I better do not make my pc dependent on any dubious source. Can I use google fonts for a commercial purpose?
    – empedokles
    Nov 14, 2015 at 11:46
  • 1
    yes: developers.google.com/fonts "The fonts in the directory are all released under open source licenses; you can use them on any non-commercial or commercial project." 1st part: you can always remove mercurial when done if that is an issue. All the other parts in the script seem fine to me :)
    – Rinzwind
    Nov 14, 2015 at 11:49

You can have much easier way with these terminal commands :

sudo apt-get update
sudo apt-get install tasksel
sudo tasksel

And it will show you a bunch of packages collection, and then simply select :

[*] Large selection of font packages

And then give it an OK. Hope it satisfy your design needs :)

  • That... does not include google-fonts or if it does pulls in a lot more I'd believe. Plus your command can be reduced to 1: sudo apt-get install {package}^ . The ^ in there makes it a tasksel task. Works for all tasks.
    – Rinzwind
    Nov 11, 2015 at 18:25
  • Don't know how to select anything. It also had preselections I didn't know how to delete.
    – empedokles
    Nov 26, 2015 at 16:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .