Based on fontfacegen without using Node.
Take an otf then generate the required ttf, woff, woff2 and css for web usage.
- Fontforge
- woff2_compress
On OS X, install with Homebrew:
brew tap bramstein/webfonttools
brew update
brew install fontforge woff2
Clone, build and add to your $PATH woff2_compress. Then with apt:
apt install fontforge
make fonts FONT_PATH=/path/to/a_font.otf
make css FONT_PATH=/path/to/a_font.otf
make sass FONT_PATH=/path/to/a_font.otf
make fonts FONT_PATH=/path/to/a_font.otf DEST=/my/dir/to-output-generated-fonts