Skip to content

Instantly share code, notes, and snippets.

@zzkt
Created September 5, 2019 10:43
Show Gist options
  • Save zzkt/c8225830d7f1eda2bb54ff9a5baf5cdc to your computer and use it in GitHub Desktop.
Save zzkt/c8225830d7f1eda2bb54ff9a5baf5cdc to your computer and use it in GitHub Desktop.
#!/usr/local/bin/fontforge
# convert a font (or list of fonts) to truetype
if ( $argc==1 )
Print("usage: fontforge -script otf2ttf.pe FONT.otf")
else
i=1
while ( i<$argc )
in=$argv[i]
Print("Opening "+in);
Open(in);
Print("Saving "+in:r+".ttf");
Generate(in:r+".ttf");
i = i+1
endloop
endif
Quit(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment