disastercurl/docker-css3FontConverter

Docker container for converting fonts to various web formats

★ 1Forks 0DockerfileGitHub ↗Compare

README

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

Contributors

disastercurl

Issues