Permalink
Browse files

Added generate.pe and Makefile. This should be used to generate fonts…

… rather than python

as adding python script will create an extra dependency on Python fontforge python binding
  • Loading branch information...
1 parent b75713f commit 9f91bb0ce6232c195b72b09768fda87096271718 @copyninja copyninja committed Dec 10, 2011
Showing with 26 additions and 1 deletion.
  1. +2 −1 .gitignore
  2. +5 −0 Makefile
  3. +19 −0 generate.pe
View
@@ -1 +1,2 @@
-*.sfd~
+*.sfd~
+OTFFiles/
View
@@ -0,0 +1,5 @@
+default:
+ mkdir -p OTFFile
+ ./generate.pe Navilu.sfd
+clean:
+ rm -rf OTFFile
View
@@ -0,0 +1,19 @@
+#!/usr/bin/env fontforge
+
+# script file for FontForge for TTF generation
+# usage:
+# mkdir TTFfiles
+# chmod +x generate.pe
+# ./generate.pe *.sfd
+
+if ($version < "20061220")
+ Error("Your version of FontForge is too old - 20061220 or newer is required");
+endif
+i = 1
+while ( i < $argc )
+ Open($argv[i], 1)
+ #Use gen_flags=Defualt fmflags value as -1
+ gen_flags = -1
+ Generate("OTFFiles/" + $fontname + ".otf", "", gen_flags)
+ i++
+endloop

0 comments on commit 9f91bb0

Please sign in to comment.