Skip to content
Browse files

Merge pull request #1 from copyninja/master

Add Makefile instead of using Python
  • Loading branch information...
2 parents b75713f + 9f91bb0 commit 58941d637c73abe77bc210128219c50b93c8a47d @aravindavk committed Dec 9, 2011
Showing with 26 additions and 1 deletion.
  1. +2 −1 .gitignore
  2. +5 −0 Makefile
  3. +19 −0 generate.pe
View
3 .gitignore
@@ -1 +1,2 @@
-*.sfd~
+*.sfd~
+OTFFiles/
View
5 Makefile
@@ -0,0 +1,5 @@
+default:
+ mkdir -p OTFFile
+ ./generate.pe Navilu.sfd
+clean:
+ rm -rf OTFFile
View
19 generate.pe
@@ -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 58941d6

Please sign in to comment.
Something went wrong with that request. Please try again.