diff options
author | James Godfrey-Kittle <jamesgk@google.com> | 2015-05-08 09:52:31 -0700 |
---|---|---|
committer | jamesgk <jamesgk19@gmail.com> | 2015-05-08 09:52:31 -0700 |
commit | 05d020abc4a8d5c11b449f738b95c4190998d111 (patch) | |
tree | c0e291c99dd616e814f5e7a64dac84c26292743f /scripts/lib/fontbuild | |
parent | 864f8783ed56c729971f85801f1a1199ff83f1b6 (diff) |
Use RGlyph.move() to shift composite glyphs.
This has now been fixed upstream.
Diffstat (limited to 'scripts/lib/fontbuild')
-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: |