Self-Hosting Google Web Fonts

  • I self-host fonts for my website, but I only use WOFF. You don't need to use SVG, TTF or EOT unless you want to provide full support for all browsers. If you are happy to provide support for recent, modern browsers only, you can simplify things by just self-hosting WOFF files:

    http://caniuse.com/#feat=woff

    For browsers that don't support WOFF, just specify a browser-safe font in your CSS. Those browsers will ignore the Woff declaration and use the browser-safe font instead.

    EDIT: As far as file size goes, I use two font weights on my site: Source Sans Pro regular and bold. Each font weighs 27kb - so 54kb in total. This is much less than many Javascript libraries and third-party embeds.

    Here's my site (hope it's fine to link) - it's admittedly very simple and has no Javascript (although Javascript is needed to load the fonts!). In the end you have to weigh up the balance between page weight and performance for your own site.

    http://www.interfacesketch.com/

  • You can get all the fonts here... https://code.google.com/p/googlefontdirectory/

  • I'm curious - why would you want to host these yourself? Don't your users then lose the benefit of caching (e.g. if they also visit other sites which use the same fonts).

  • Doesn't Google do some user-agent sniffing for requests for their webfonts to optimize for the target platform?

    I guess you would lose these optimizations by hosting them yourself.

  • Or you could host versions (of the fonts in Google Web Fonts) that actually look good: http://brick.im/

  • Are you allowed to do this with fonts you got from Google under their terms of service?

    I always figured they reason they didn't make it easy themselves was cause they didn't allow it, but never actually checked. I would kind of like to serve google fonts with cache-forever headers -- google strangely doesn't. I'd also like to package them up in a web project I'd like to make runnable from local file system without internet.

  • One thing I really wish people would "get" is font variants... even font squirrel messes this one up.. you should set up variants to the same family, with the appropriate weight and decoration set...

    In general I only specify what I will actually be using, but knowing the difference is helpful... I wish more font packs would do the right thing here.

  • Attention!

    Former downloads only provided fonts with the default Latin subset, this has been resolved (charsets are selectable). I'm sorry if this causes any inconvenience (please keep in mind, it's still a prototype)...

    https://google-webfonts-helper.herokuapp.com

  • Great project! This deserves a high profile.

  • Hm, wonder if this somehow is against their TOS?

  • You are my hero... Thank you so much!

  • Applause!!!! I hate Google Web Fonts for their horrible interface to OPEN SOURCE FONTS for which they don't offer download links. It should be prosecuted as a crime. What the hell Google?