diff options
author | James Godfrey-Kittle <jamesgk@google.com> | 2015-01-30 17:46:00 -0800 |
---|---|---|
committer | James Godfrey-Kittle <jamesgk@google.com> | 2015-04-16 12:16:28 -0700 |
commit | 9b9f8fd919a47a53dae5a972d4f35bbc54112b8f (patch) | |
tree | b2cddb19a21aee40134f0d2f525bdcb958f69a30 /scripts | |
parent | 14e8486331ba8d32d0dd9765b604ec3e5040f91b (diff) |
Fix bug in composite glyph generation
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/fontbuild/generateGlyph.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/lib/fontbuild/generateGlyph.py b/scripts/lib/fontbuild/generateGlyph.py index 4f9f026..c4388fb 100644 --- a/scripts/lib/fontbuild/generateGlyph.py +++ b/scripts/lib/fontbuild/generateGlyph.py @@ -22,9 +22,8 @@ def generateGlyph(f,gname): g = f.newGlyph(glyphName) lastWidth = 0 for componentName in baseName.split("_"): - g.appendComponent(componentName, (lastWidth, 0)) - lastWidth = f[componentName].width - g.width += lastWidth + g.appendComponent(componentName, (g.width, 0)) + g.width += f[componentName].width else: if not f.has_key(glyphName): try: |