summaryrefslogtreecommitdiff
path: root/scripts/lib/fontbuild/anchors.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/fontbuild/anchors.py')
-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 51fb57a..a617b2f 100644
--- a/scripts/lib/fontbuild/anchors.py
+++ b/scripts/lib/fontbuild/anchors.py
@@ -32,9 +32,9 @@ def moveMarkAnchors(f, g, anchorName, accentName, dx, dy):
anchors = f[accentName].anchors
for anchor in anchors:
if "mkmktop_acc" == anchor.name:
- for i in range(len(g.anchors)):
- if g.anchors[i].name == "top":
- del g.anchors[i]
+ for anc in g.anchors:
+ if anc.name == "top":
+ g.removeAnchor(anc)
break
g.appendAnchor("top", (anchor.x + int(dx), anchor.y + int(dy)))