diff options
Diffstat (limited to 'source/scripts/fontexport.pe')
-rw-r--r-- | source/scripts/fontexport.pe | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/scripts/fontexport.pe b/source/scripts/fontexport.pe new file mode 100644 index 0000000..343f808 --- /dev/null +++ b/source/scripts/fontexport.pe @@ -0,0 +1,21 @@ +# FontForge script to export font file(s) in selectable format +# TODO: 0x800 fmflags only for TTF? + +if ($argc <= 1) + Print("usage: script [-<format>] file1 ...") + Print("(default format is ttf)") + return(1) +endif + +format = "ttf" +if (Strstr($1, "-") == 0) + format = Strsub($1, 1) + shift +endif +while ($argc > 1) + Print("Generating " + format + " from " + $1) + Open($1) + Generate($1:r + "." + format, "", 0x800) + Close() + shift +endloop |