Monday, March 17, 2014

Automatically Install All The Google Web Fonts In Ubuntu Using A Script

What the script does is download all the fonts from Google Font Directory. It installs them under /usr/share/fonts/truetype/google-fonts/ so if you want to remove them, simply delete that folder.

To download and install all the Google Web Fonts in Ubuntu, open a terminal and type the following commands:



cd && wget http://webupd8.googlecode.com/files/install-google-fonts
chmod +x install-google-fonts
./install-google-fonts
 
If you want to take a look at the script before running it, download it from 
HERE.


Once the script finishes downloading and installing the fonts, you can go ahead and try them out. If you want to use one of the Google Web Fonts for your desktop, right click your Desktop, select "Preferences" and set the new font on the "Fonts" tab.

The script creates a "googlefontdirectory" folder in the directory where you run it (your home folder if you've followed our exact instructions) - you can either delete this folder or keep it and the next time you run the script, it will only update the fonts instead of completely downloading them all over again.
I found this script on Web UPD8 and is easy peasy.  It takes a little time to download so be patient.

Unixmaiden on Google +
 

No comments :

Post a Comment