I need to use some google fonts on an intranet application. The clients may or may not have internet connection. Reading the license terms, it appears that its legally allowed.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Please keep in mind that my answer has aged a lot.
There are other more technically sophisticated answers below, e.g.:
localfontso don’t let the fact that this is the currently accepted answer give you the impression that this is still the best one.
You can also now also download google’s entire font set via on github at their google/font repository. They also provide a ~1GB zip snapshot of their fonts.
You first download your font selection as a zipped package, providing you with a bunch of true type fonts. Copy them somewhere public, somewhere you can link to from your css.
On the google webfont download page, you’ll find a include link like so:
It links to a CSS defining the fonts via a bunch of
@font-facedefintions.Open it in a browser to copy and paste them into your own CSS and modify the urls to include the right font file and format types.
So this:
becomes this:
As you can see, a downside of hosting the fonts on your own system this way is, that you restrict yourself to the true type format, whilst the google webfont service determines by the accessing device which formats will be transmitted.
Furthermore, I had to add a
.htaccessfile to my the directory holding the fonts containing mime types to avoid errors from popping up in Chrome Dev Tools.For this solution, only true type is needed, but defining more does not hurt when you want to include different fonts as well, like
font-awesome.