summaryrefslogtreecommitdiff
path: root/scripts/lib/fontbuild/decomposeGlyph.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/fontbuild/decomposeGlyph.py')
-rw-r--r--scripts/lib/fontbuild/decomposeGlyph.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/fontbuild/decomposeGlyph.py b/scripts/lib/fontbuild/decomposeGlyph.py
index 2d7537c..b3db2d6 100644
--- a/scripts/lib/fontbuild/decomposeGlyph.py
+++ b/scripts/lib/fontbuild/decomposeGlyph.py
@@ -1,7 +1,7 @@
-def decomposeGlyph(glyph):
+def decomposeGlyph(font, glyphName):
"""Moves the components of a glyph to its outline."""
- font = glyph.getParent()
+ glyph = font[glyphName]
for component in glyph.components:
componentGlyph = font[component.baseGlyph]
for contour in componentGlyph: