Subset and convert one or many OTF/TTF/WOFF/WOFF2 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 and woff2_decompress
- woff2sfnt, for decoding WOFF files
- fonttools (pyftsubset)
docker run -ti --name "webfontgen" -p 8080:80 ambroisemaupate/webfontgeneratorThe Docker image is built from this repository Dockerfile (runtime configuration lives in docker/):
docker build -t ambroisemaupate/webfontgenerator .Then open your browser on http://localhost:8080, upload your OTF/TTF/WOFF/WOFF2 font file and… enjoy!
Requires Docker only (Linux or macOS): the image ships PHP 8.5, Composer and every font tool. Clone this repository, then:
cp compose.override.yml.dist compose.override.yml # exposes port 8080
docker compose up --build # installs vendor/ on first launchThen open your browser on http://localhost:8080
