From 05d020abc4a8d5c11b449f738b95c4190998d111 Mon Sep 17 00:00:00 2001 From: James Godfrey-Kittle Date: Fri, 8 May 2015 09:52:31 -0700 Subject: Use RGlyph.move() to shift composite glyphs. This has now been fixed upstream. --- scripts/lib/fontbuild/generateGlyph.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'scripts/lib/fontbuild') 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: -- cgit v1.2.3