diff options
author | James Godfrey-Kittle <jamesgk@google.com> | 2015-05-11 09:26:40 -0700 |
---|---|---|
committer | James Godfrey-Kittle <jamesgk19@gmail.com> | 2015-05-11 09:26:40 -0700 |
commit | 51a104941b097a959c5d806d567115d99051fcc1 (patch) | |
tree | 9250adb3ddaf15a0bfff3d3fad0bfb4d5a1ff74f /scripts/lib/fontbuild/anchors.py | |
parent | d2ac8019271ecd84b6a4ee36056d59ff2f3fcb18 (diff) | |
parent | 05d020abc4a8d5c11b449f738b95c4190998d111 (diff) |
Merge pull request #34 from google/anchor-fix
Fix bug causing inaccurate anchor coordinates.
Diffstat (limited to 'scripts/lib/fontbuild/anchors.py')
-rw-r--r-- | scripts/lib/fontbuild/anchors.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/fontbuild/anchors.py b/scripts/lib/fontbuild/anchors.py index 9b8095d..622d52a 100644 --- a/scripts/lib/fontbuild/anchors.py +++ b/scripts/lib/fontbuild/anchors.py @@ -39,9 +39,9 @@ def moveMarkAnchors(f, g, anchorName, accentName, dx, dy): anchors = f[accentName].anchors for anchor in anchors: if "mkmkbottom_acc" == anchor.name: - for anchor in g.anchors: - if anchor.name == "bottom": - g.removeAnchor(anchor) + for anc in g.anchors: + if anc.name == "bottom": + g.removeAnchor(anc) break x = anchor.x + int(dx) for anc in anchors: |