Closed gvwilson closed 9 years ago
I've been doing the same (downloading web fonts) for my presentations so I can confirm it works. I have a script for that but we just need to do it once, so a manual approach would be ok. https://github.com/twitwi/deck.js-theme-builder/blob/master/tools/get-and-use-local-fonts.py
The .woff I use are around 30kB so it shouldn't be a big problem to put them in the repo. https://github.com/twitwi/deck.js-theme-builder/tree/master/local-fonts
(I just saw this issue randomly, not sure I'll work on it)
Can we download Google's font and store it in the repository? I'm not sure what the license is, but then you'd get the fonts along with the slides. If Google won't let you store them in a repository, I'd just pick a font that does allow that.
I think I checked the licence prior to doing it but I'm not 100% sure. I'll check later.
It seems to be ok, it's said to be "open source" and "you can use them in every way you want, privately or commercially — in print, on your computer, or in your websites". http://www.google.com/fonts/#AboutPlace:about
On Tue, Aug 19, 2014 at 01:23:22PM -0700, Rémi Emonet wrote:
"you can use them in every way you want, …"
Lovely. Thanks for checking :).
The patch has been merged by @r-gaia-cs cheers
Our slides currently load fonts over the web. According to @alexperala, we should be able to load locally instead (so that things will run on a laptop that isn't on the web, which is useful in a lot of circumstances). His comment is below; it would be useful if someone could explore this and see (a) if we can do it, and (b) how much it would add to the repo.
Our slides are loading the fonts from Google Fonts, but it looks like there is a way to use them locally. I checked out the first one, 'Lato', and when I clicked the download button I got this message:
It looks like SkyFonts will allow you to download the fonts to your device, and I imagine the Google Code Project gives you all Google Fonts. In any case I believe each font will be saved as a .woff file, which you can then link to by replacing those @import lines with what you get when you click those links - the code from the Google Fonts API. So for example, you would replace this:
with this: