summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-04-30 16:24:39 -0700
committerjamesgk <jamesgk19@gmail.com>2015-04-30 16:24:39 -0700
commitc3f509e3e5d94c768e0735ac999939b4e9360702 (patch)
tree4aa4e82ac32dd957703e71209ce5375b2d1799af
parentd5d89e40dbd2d2162bf82851770f5b63a790cc09 (diff)
Fix bug causing inaccurate anchor coordinates.
I introduced this bug in aa285dc861fb8a5b5083e1de3bb00ea1ef658cb1 while adapting updated scripts from Paratype.
-rw-r--r--scripts/lib/fontbuild/anchors.py6
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: