summaryrefslogtreecommitdiff
path: root/scripts/generate.sh
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-12-08 17:19:51 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-12-08 17:19:51 -0800
commitb96cfb396f21b82a5c1be53d093198b5b028c08b (patch)
tree03735dff1b6bfd8f1ba6f7a9b812231c6af2fc9f /scripts/generate.sh
downloadcantarell-fonts-b96cfb396f21b82a5c1be53d093198b5b028c08b.tar.gz
cantarell-fonts-b96cfb396f21b82a5c1be53d093198b5b028c08b.tar.bz2
cantarell-fonts-b96cfb396f21b82a5c1be53d093198b5b028c08b.zip
Imported Upstream version 0.0.11upstream/0.0.11
Diffstat (limited to 'scripts/generate.sh')
-rwxr-xr-xscripts/generate.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/generate.sh b/scripts/generate.sh
new file mode 100755
index 0000000..9bbf475
--- /dev/null
+++ b/scripts/generate.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/env fontforge
+
+if ($version < "20080330")
+ Error("Your version of FontForge is too old - 20080330 or newer is required");
+endif
+
+SetPref("FoundryName", "Cantarell")
+SetPref("TTFFoundry", "Cantarell")
+
+i = 1
+while (i < $argc)
+ Open($argv[i], 1)
+ SelectAll()
+ Simplify()
+ AddExtrema()
+ RoundToInt()
+ CorrectDirection()
+ Generate($fontname + ".otf")
+ Close()
+ i++
+endloop