Search code examples
webfontsgoogle-webfonts

How to download multiple formats of a web font from the (official) Google Web Fonts repo?


I've learnt that Google automatically serves TTF, EOT, WOFF, or SVG font files depending on the browser / device it's accessed from.

Now I am planning to host and serve the font files from my server itself, for which I would first have to download all the file formats of the web font(s).

How or where can I download the 4 file formats for a web font that I would like to use?

PS: By using different browsers -- Chrome, IE9 and Safari (dev - iPhone UA), I was able to get the WOFF, EOT and TTF formats. No luck with the SVG format though. It would be awesome if there's an even simpler way.

EDIT: Oh, and by the way, I do know that I can download various formats from fontsquirrel, but I am talking about downloading from the official repo here.


Solution

  • You can clone the Google webfonts directory at http://code.google.com/p/googlefontdirectory/

    You can also get single font files at http://code.google.com/p/googlefontdirectory/source/browse/#font_name