- Root
- Converting Fonts for the Web
- Revisions
- Revision 3be32d95
Converting Fonts for the WebRevisionas of Monday, 7 March 2016 at 05:22 UTC
I started with an OpenType file.
TTF and SVG
Install FontForge (on Homebrew) and then save this as a script
Open($1)
Generate($1:r + ".ttf")
Generate($1:r + ".svg")
Run with
fontforge -script name_of_script font.otf
WOFF
Use this tool (not on Homebrew) called sfnt2woff
sfnt2woff font.otf
EOT
Install ttf2eot via Brew and then
ttf2eot Inconsolata.ttf > Inconsolata.eot