majodev / google-webfonts-helper

A Hassle-Free Way to Self-Host Google Fonts. Get eot, ttf, svg, woff and woff2 files + CSS snippets
https://gwfh.mranftl.com
MIT License
12.16k stars 430 forks source link

Can the download zip option include the CSS file? #14

Open monsterlane opened 8 years ago

monsterlane commented 8 years ago

Would make batch importing a large numbers of font to serve locally with the WebFont loader a lot easier.

majodev commented 8 years ago

This would definitely be awesome and will be part of the incoming next major rewrite.

I want the server+client to share the same implementation of the generation logic (and also include snippets for other preprocessors like SASS, Less, ...).

monsterlane commented 8 years ago

Awesome! We're hosting all of Google's fonts so we can use them with a PDF converter and having the CSS included would make my admin panel installer a lot cleaner. Currently we have to paste the CSS into a box and it downloads the zip and puts everything together before pushing it to an S3 container.

mneitz commented 6 years ago

and API do download the CSS would be awseome or even part of the downloaded zip. with the current GDPR in place i would need to parse the filenamens to generate the coresponding CSS which the Webinterface is providing already. This would be a BIG HELP.

nextgenthemes commented 4 years ago

Hi guys, I created a download tool in PHP that works on the server and as a CLI script. It supports display=swap and also packages the css exactly like google serves it, just with font location replaced with relative path. See nextgenthemes.com/google-webfont-downloader/