This project is used to extract fonts.
It minify font's size when you don't need full fonts.
git submodule update
docker pull peter1209/fontforge
- ttf
- svg
- ttc
- woff
- -i: Input a font file
- -o: Output a zip file
- -f: Input a text file
- --webfont: New font name
- --base64: Encode base64
Run:
./generate-font.sh -i Hanzipen.ttc -o webfont.zip -f text.txt --webfont fontName
Output zip tree:
fontName.tff
fontName.svg
fontName.woff
fontName.css
index.html
See dockerhub if you need use web server.
docker build --no-cache -t peter1209/font-generator-server -f dockerfile/Dockerfile .