Subset and convert one or many OTF/TTF files in EOT, SVG, WOFF and WOFF2.
Built thanks to:
- fontforge, for converting to ttf and svg. You only need to setup command line scripting tool.
- ttf2eot
- sfnt2woff
- woff2_compress
- fonttools (pyftsubset)
docker run -ti --name "webfontgen" -p 8080:80 ambroisemaupate/webfontgenerator
Then open your browser on http://localhost:8080
, upload your OTF/TTF font file and… enjoy!
Clone this repository, then:
cp config.docker.yml config.yml
composer install
docker-compose up
Then open your browser on http://localhost:8080