diff options
Diffstat (limited to 'scripts/lib/fontbuild/generateGlyph.py')
-rw-r--r-- | scripts/lib/fontbuild/generateGlyph.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/scripts/lib/fontbuild/generateGlyph.py b/scripts/lib/fontbuild/generateGlyph.py index 4d1323f..c674c38 100644 --- a/scripts/lib/fontbuild/generateGlyph.py +++ b/scripts/lib/fontbuild/generateGlyph.py @@ -58,13 +58,6 @@ def copyMarkAnchors(f, g, srcname, width): # g.appendAnchor(anchor.name, (anchor.x + width, anchor.y)) -def shiftGlyphMembers(g, x): - for contour in g.contours: - contour.move((x, 0)) - for component in g.components: - component.move((x, 0)) - - def generateGlyph(f,gname,glyphList={}): glyphName, baseName, accentNames, offset = parseComposite(gname) @@ -88,7 +81,7 @@ def generateGlyph(f,gname,glyphList={}): copyMarkAnchors(f, g, baseName, offset[1] + offset[0]) if offset[0] != 0 or offset[1] != 0: g.width += offset[1] + offset[0] - shiftGlyphMembers(g, offset[0]) + g.move((offset[0], 0), anchors=False) if len(accentNames) > 0: alignComponentsToAnchors(f, glyphName, baseName, accentNames) else: |