summaryrefslogtreecommitdiff
path: root/scripts/lib/fontbuild/generateGlyph.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/fontbuild/generateGlyph.py')
-rw-r--r--scripts/lib/fontbuild/generateGlyph.py5
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: