From 9b9f8fd919a47a53dae5a972d4f35bbc54112b8f Mon Sep 17 00:00:00 2001 From: James Godfrey-Kittle Date: Fri, 30 Jan 2015 17:46:00 -0800 Subject: Fix bug in composite glyph generation --- scripts/lib/fontbuild/generateGlyph.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts/lib') 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: -- cgit v1.2.3