From 5b0dcd91995fe60d235bde7c7bb6bdbf0b910e81 Mon Sep 17 00:00:00 2001 From: James Godfrey-Kittle Date: Mon, 23 Nov 2015 18:54:25 -0800 Subject: Reverse contours before generating TTFs The UFOs store contours in ccw order, and the TrueType spec seems to say they should be cw. The old binaries are cw. --- scripts/lib/fontbuild/Build.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/lib/fontbuild') diff --git a/scripts/lib/fontbuild/Build.py b/scripts/lib/fontbuild/Build.py index 041a7ec..5bb0ed6 100644 --- a/scripts/lib/fontbuild/Build.py +++ b/scripts/lib/fontbuild/Build.py @@ -193,6 +193,9 @@ class FontProject: for font in fonts: ttfName = self.generateOutputPath(font, "ttf") log(os.path.basename(ttfName)) + for glyph in font: + for contour in glyph: + contour.reverseContour() saveOTF(font, ttfName, truetype=True) -- cgit v1.2.3