Closed rieje closed 8 years ago
I have not considered doing this for Font Awesome, and the current script would likely need some refactoring to be useful for other services. I like the idea, but I do not have time or a use case to invest the development time at the moment. I see a couple of challenges:
I'm aware of the glyph problem and solving this in some way would really be a nice idea, since I surf with NoScript and a lot of webpages don't render the glyphs without JavaScript.
There is no automated mechanism to update the local copy of your font. You could easily set up a cronjob that periodically updates the fonts, but I wouldn't want a completely automated approach since you might want to test your site with the updated fonts first.
I see this script as a piece of the puzzle that would allow you to keep a local copy of the most popular fonts. You would likely need a browser extension to rewrite the URLs of the fonts to a local resource. You'd also have to deal with browser policies, because modern browsers usually don't allow websites to access local data directly (i.e. you'd need a local webserver). Additionally, if you wanted this to work for non-google fonts, you would have to implement support for other providers first. Overall, I do not see a browser extension in the scope of this project. google-font-download is merely a tool to download the font files and generate CSS and is intended for website owners who don't want to rely on Google's CDN.
P.S. Decentraleyes addon for Firefox is doing something similar, not with fonts but with scripts and content. Perhaps there can be a merge or exchange of ideas or something. You probably already know this though.