Skip to content

Instantly share code, notes, and snippets.

@masih
Created May 2, 2014 11:37
Show Gist options
  • Save masih/6aeef03110b1cea45e07 to your computer and use it in GitHub Desktop.
Save masih/6aeef03110b1cea45e07 to your computer and use it in GitHub Desktop.
Converts any font to TTF using FontForge
#!/usr/local/bin/fontforge
# Quick and dirty hack: converts a font to truetype (.ttf)
# Usage:
# for i in *.XXX; do fontforge -script tottf.sh $i; done
Print("Opening "+$1);
Open($1);
Print("Saving "+$1:r+".ttf");
Generate($1:r+".ttf");
Quit(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment