Sign inSign up

stealthii/docker-css3fontconverter

By stealthii

Updated over 7 years ago

Docker container for converting fonts to various web formats

Image
0

342

stealthii/docker-css3fontconverter repository overview

docker-css3FontConverter

css3FontConverter is a tool to convert TTF/OTF fonts to EOT, SVG, WOFF, WOFF2 web fonts, and generate a CSS stylesheet with CSS3 @font-face rules.

As usual there's a bunch of ridiculous dependencies so here's a docker image containing everything you need

How to Download
docker pull stealthii/css3fontconverter
How to Build

Fetch the code

git clone https://github.com/Stealthii/docker-css3FontConverter.git
cd docker-css3FontConverter
docker build -t stealthii/css3fontconverter .
How to convert fonts

Convert all ttf and otf files in the current directory (default):

docker run -it -v `pwd`:/fonts stealthii/css3fontconverter

Convert some otf files in /mnt/silly-project:

docker run -it -v /mnt/silly-project:/fonts stealthii/css3fontconverter project*.otf

Tag summary

Content type

Image

Digest

Size

340.2 MB

Last updated

over 7 years ago

docker pull stealthii/docker-css3fontconverter