You have to work a little hard to self-host Google web fonts because Google does not provide any direct links to download all the popular font formats .eot
, .woff
, .woff2
, .ttf
and .svg
files and a customized CSS for self-hosting them.
So to fix this problem following web tools will help you to host Google web fonts on your own server:
Google web fonts helper is a free tool created by Mario Ranftl which uses the Google Fonts API that does all the hard work for us to self-host Google web fonts in few easy steps. It also allows you to select more than one font variant, which saves a lot of time.
All you need is to choose your font, choose browser support, copy the CSS and download the font files.
This is a similar and alternative to Google web fonts helper. A little disadvantage about this web tool is that it does not provide to select more than one font variant at a time.
If you need to convert a font for which you have the rights, there’s Font Squirrel web font generator. This tool can convert a font to all the popular formats.
To generate the web fonts you have to download the .ttf
(Google Fonts does provide direct link to download only .ttf
) font files, upload to Font Squirrel web font generator, choose the browser support, copy the CSS and download the font files.