Skip to content

Instantly share code, notes, and snippets.

@dehuszar
Forked from endel/conver.pe
Last active May 29, 2018 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dehuszar/980a09dd7406d62812e2263c30e04d88 to your computer and use it in GitHub Desktop.
Save dehuszar/980a09dd7406d62812e2263c30e04d88 to your computer and use it in GitHub Desktop.
FontForge script to convert .ttf file to its webfont variations (.otf, .svg, .woff, .woff2)
#!/usr/local/bin/fontforge
Open($1)
Generate($1:r + ".otf")
Generate($1:r + ".ttf")
Generate($1:r + ".svg")
Generate($1:r + ".woff")
Generate($1:r + ".woff2")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment