JoomlaWorks

Member Dashboard
  • Home
  • Extensions
    • Commercial
      • Frontpage Slideshow
      • K2 Plugin for sh404SEF
      • Simple Image Gallery Pro
      • SocialConnect
    • Free
      • K2
      • AllVideos
      • DISQUS Comments for Joomla!
      • IAKI (Import As K2 Image)
      • Quick Menu (for Joomla 4)
      • Simple Image Gallery
      • Simple RSS Feed Reader
    • Free On Github
      • Akismet for Kunena
      • Fill It Up
      • K2 Example Plugin
      • K2 Links for JCE
      • Rebuild K2 Image Cache (CLI utility for K2)
      • TinyLetter Subscribe
      • URL Normalizer
      • User Extended Fields for K2
  • Templates
    • Commercial Templates
      • Anagram
      • Archetype
      • BusinessOne
      • Ibento
      • Janaro
      • Kiji
      • Matchbox
      • nuMuzik
      • RadioWave
      • Toreda
    • Free Templates
      • nuModusVersus
      • Takai
  • Demos
    • Joomla Extension Demos
    • Joomla Template Demos
    • WordPress Plugin Demos
  • Labs
    • Web Apps
      • JSON 2 JSONP
      • Feed Reader (bookmarklet)
      • Device Info
  • Support
    • Documentation for Joomla Extensions
      • AllVideos
      • Frontpage Slideshow
      • Simple Image Gallery
      • Simple Image Gallery Pro
      • SocialConnect
    • Documentation for Joomla Templates
      • General Resources
        • Installation
        • Content
        • Customization
      • Commercial Templates
      • Free Templates
    • Get Help
      • Community Forum
        • Recent Topics
        • Categories
        • Create free account
      • Help Desk
      • Contact us by e-mail
      • Contact us on Facebook Messenger
      • Contact us on Twitter
  • About
    • Blog
    • Company
    • License & Terms of Service
    • Privacy Policy
  • My Account
16 08 2012
Written by  JoomlaWorks
Published in Blog
Tagged under
  • +fonts
  • +Google
  • +linux
  • +mac
  • +mercurial
  • +ssh
  • +ubuntu
  • +web fonts
Be the first to comment!

How to create a zip file of all Google Web Fonts on a Mac

How to create a zip file of all Google Web Fonts on a Mac
As you may know by now, Google does not offer one simple way to download all the fonts from the Google Web Fonts website.

If you got a Mac (or Linux box) the process is quite easy. And here it goes...

STEP 1
Install Mercurial for Mac. Grab the latest package from http://mercurial.berkwood.com/
For Linux, installing Mercurial depends on your Linux flavour. For example, on Ubuntu it's a matter or running "sudo apt-get install mercurial".

STEP 2
Open the terminal app and execute the following: 
$ cd ~/
$ mkdir GoogleWebFonts
$ cd ~/GoogleWebFonts

The above commands will create a folder called "GoogleWebFonts" at the user's folder.
 
STEP 3
Let's grab the initial repo (do this only the first time you setup this whole process). Still in the terminal, execute the following: 

$ hg clone https://googlefontdirectory.googlecode.com/hg/googlefontdirectory

This command will retrieve the entire Google Web Fonts repository (around 2GBs at the time of writing) inside this "GoogleWebFonts" folder we previously created. It may take from a few minutes to over an hour to download these files depending on network activity and your internet connection speed.
 
STEP 4
Now let's grab any font updates and zip everything to a handy, clean of irrelevant files, date-marked zip file. At the terminal app, execute the following: 
$ cd ~/GoogleWebFonts/googlefontdirectory
$ hg pull --update
$ cd ..
$ find . -iname *.ttf -print | grep -v "src" | zip GoogleWebFonts_$(date +"%Y%m%d").zip -@

The above process will create a file called e.g. GoogleWebFonts_20120816.zip (if we run this process on Aug 16th 2012). The file generated at the time of writing this tutorial was around 70 MBs.

Now you can just drag and drop the fonts directly to the Mac "Font Book" app or to make it dead-simple (and cooler of course) extract this zip files inside your ~/Library/Fonts/ folder using this command (if the produced zip file was GoogleWebFonts_20120816.zip):

$ mv ~/GoogleWebFonts/GoogleWebFonts_20120816.zip ~/Library/Fonts/
$ cd ~/Library/Fonts/
$ unzip GoogleWebFonts_20120816.zip

Enjoy!

Read 46156 times Last modified on Friday, 03 April 2015 00:31

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.

back to top
BY MAIL BY RSS

Archives

  • May 2024 (1)
  • March 2023 (1)
  • January 2022 (1)
  • July 2021 (2)
  • May 2021 (1)
  • February 2021 (1)
  • December 2020 (1)
  • September 2020 (1)
  • June 2020 (1)
  • May 2020 (1)
  • February 2020 (1)
  • January 2020 (5)

Tag Cloud

1.6 allvideos announcement apache community cpanel development frontpage slideshow future joomla k2 opinion plugin release simple image gallery simple image gallery pro simple rss feed reader socialconnect update video

Latest Entries

  • K2 will not be made available for Joomla 4/5 - change of course
    Written by  JoomlaWorks
    30 May 2024
  • New free extension release: Quick Menu (for Joomla 4)
    Written by  JoomlaWorks
    06 Mar 2023
  • Simple Image Gallery (free) v4.2 released
    Written by  JoomlaWorks
    07 Jan 2022
  • Simple Image Gallery Pro v3.9.1 released (bug-fix release)
    Written by  JoomlaWorks
    26 Jul 2021
  • Simple Image Gallery Pro v3.9.0 released
    Written by  JoomlaWorks
    05 Jul 2021

Join Our Newsletter

Enter your e-mail address to subscribe to our new or updated product notifications. We send combined newsletters, so we won't spam you every week :)

Get Social

  • Twitter
  • GitHub
  • Facebook
  • GitHub (K2)
  • YouTube
  • Speaker Deck

Grab Our Feeds

  • Extension Updates
  • Blog
  • Videos
  • Presentations
Copyright © 2006 - 2025 JoomlaWorks Ltd.
JoomlaWorks Ltd. and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.
designed by Nuevvo