diff options
author | Roozbeh Pournader <roozbeh@google.com> | 2014-07-22 19:02:28 -0700 |
---|---|---|
committer | Roozbeh Pournader <roozbeh@google.com> | 2014-07-22 19:02:28 -0700 |
commit | 7f083ac31241cc86d019ea6227fa508b9fcf39a6 (patch) | |
tree | 19e7fb03c999f65f4e0d680bfb3c74b486ca0ba5 /scripts/lib/fontbuild | |
parent | 2b5dca5d77e7394df66fa8f2e8a827b1c6fec441 (diff) |
Update toolchain to latest ParaType delivery.
Diffstat (limited to 'scripts/lib/fontbuild')
-rw-r--r-- | scripts/lib/fontbuild/Build.py | 2 | ||||
-rw-r--r-- | scripts/lib/fontbuild/mix.py | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/scripts/lib/fontbuild/Build.py b/scripts/lib/fontbuild/Build.py index 6ed91c3..cc858d3 100644 --- a/scripts/lib/fontbuild/Build.py +++ b/scripts/lib/fontbuild/Build.py @@ -102,7 +102,7 @@ class FontProject: if (g.name in self.lessItalic): italicizeGlyph(g, 9, stemWidth=stemWidth) - else: + elif g.name != ".notdef": italicizeGlyph(g, 10, stemWidth=stemWidth) g.RemoveOverlap() g.width += 10 diff --git a/scripts/lib/fontbuild/mix.py b/scripts/lib/fontbuild/mix.py index 86bf4ed..06c62dc 100644 --- a/scripts/lib/fontbuild/mix.py +++ b/scripts/lib/fontbuild/mix.py @@ -228,6 +228,13 @@ class Master: def openFont(self, path, overlayPath=None): fl.Open(path,True) self.ifont = fl.ifont + for g in fl.font.glyphs: + size = len(g) + csize = len(g.components) + if (size > 0 and csize > 0): + g.Decompose() + + self.ifont = fl.ifont self.font = fl.font if overlayPath != None: fl.Open(overlayPath,True) |