diff options
author | James Godfrey-Kittle <jamesgk@google.com> | 2015-11-23 18:54:25 -0800 |
---|---|---|
committer | James Godfrey-Kittle <jamesgk@google.com> | 2015-11-23 18:54:25 -0800 |
commit | 5b0dcd91995fe60d235bde7c7bb6bdbf0b910e81 (patch) | |
tree | 01ee102e13e4bed4fa52e63fd64f6228937e4af9 | |
parent | d2d238585968c4f91f73801a36d8d20ee3c3f424 (diff) |
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.
-rw-r--r-- | scripts/lib/fontbuild/Build.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |