This only works on OS X/macOS.
From a ttf or otf, generate the required ttf, eot, woff, svg and css for the font to be used in browsers.
https://www.npmjs.com/package/fontfacegen
-
OS X/macOS
-
Node.js and npm need to be installed.
-
Install fontforge on OS X
brew install fontforge
-
Clone this repository.
-
Run
npm install
in repository root directory. -
Add .otf or .ttf files to the
input/
folder. -
Run
node index.js
in repository root directory. -
Find the output in the
output/
folder.
Create folders for each font in the input folder see comments in index.js
for my attempts.