Converts one OTF/TTF, SVG, SFD, WOFF and WOFF2 and makes a webfont pack.
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 BeitDina/webfont
Then open your browser on http://localhost:8080
, upload your OTF/TTF font file and… enjoy!
Required: PHP 7.1+
Clone this repository, then:
cp config.docker.yml config.yml
composer install
docker-compose up
Then open your browser on http://localhost:8080