[cantarell-fonts/greek] Rebuild the otf fonts from sfd sources.



commit 87a29db8af0b8062b8a48aca8dd32bbb66faf092
Author: Fabian Greffrath <fabian greffrath com>
Date:   Fri Sep 14 10:46:12 2012 +0200

    Rebuild the otf fonts from sfd sources.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=644126

 otf/Makefile.am     |    3 +++
 scripts/generate.sh |    9 ++++++---
 2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/otf/Makefile.am b/otf/Makefile.am
index 1d11665..6cfb8b9 100644
--- a/otf/Makefile.am
+++ b/otf/Makefile.am
@@ -4,6 +4,9 @@ font_DATA = \
        Cantarell-Regular.otf           \
        Cantarell-Bold.otf
 
+%.otf: $(top_srcdir)/src/%.sfd
+       /usr/bin/env fontforge -script $(top_srcdir)/scripts/generate.sh "$^"
+
 EXTRA_DIST = $(font_DATA)
 
 -include $(top_srcdir)/git.mk
diff --git a/scripts/generate.sh b/scripts/generate.sh
index a022c5b..9bbf475 100755
--- a/scripts/generate.sh
+++ b/scripts/generate.sh
@@ -10,9 +10,12 @@ SetPref("TTFFoundry", "Cantarell")
 i = 1
 while (i < $argc)
     Open($argv[i], 1)
-    Generate($fontname + ".ttf")
-    PrintSetup (5)
-    PrintFont (0, 0, "", $fontname + "-sample.pdf")
+    SelectAll()
+    Simplify()
+    AddExtrema()
+    RoundToInt()
+    CorrectDirection()
+    Generate($fontname + ".otf")
     Close()
     i++
 endloop


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]