webfont-generator
webfont-generator copied to clipboard
Subset and convert one or many OTF/TTF files in EOT, SVG, WOFF and WOFF2.
webfont-generator
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)
Usage with Docker
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!
Development
Clone this repository, then:
cp config.docker.yml config.yml
composer install
docker-compose up
Then open your browser on http://localhost:8080