Extract small size font which you offer font.
3.4K
You able to use the image to run a web server if you need dynamic to get fonts.
It minify font's size when you don't need full fonts.
Run a server if you offer font file at remote server.
docker run -h 0.0.0.0 -p 5000:5000 peter1209/font-generator-server:0.0.1 http://your-ip/your-font.zip
Or use local font files, you could mount volume to /root/fonts.
docker run -h 0.0.0.0 -p 5000:5000 -v /root/fonts:/root/fonts/your-font-folder peter1209/font-generator-server:0.0.1
Parameters:
When call web api, you will get css of embedding base64 font.
curl -X POST -H "Content-Type: application/json" -d '{"fontName":"newFontName", "text":"input text to extract fonts", "fontBase":"PHTK51.TTF"}' http://localhost:5000/fontGenerator/fonts/generate
Extract some text by font.
Parameters:
font-family name.This project source code on github.
Content type
Image
Digest
Size
130.1 MB
Last updated
almost 9 years ago
docker pull peter1209/font-generator-server