diff options
author | James Godfrey-Kittle <jamesgk@google.com> | 2015-06-17 12:50:00 -0700 |
---|---|---|
committer | James Godfrey-Kittle <jamesgk@google.com> | 2015-06-17 14:12:56 -0700 |
commit | a24427937cfbec87c458b397ed5982bf534479f1 (patch) | |
tree | 3c2d3678b61d3fa7b218fb2385ed1bde02780868 /scripts/lib/fontbuild/anchors.py | |
parent | 84ec6e99fe55ac40f4ca7824aceea3d4105a84bc (diff) | |
parent | f0446ecc7eee2fe55e4f81563e035f8bee01b748 (diff) |
Merge branch 'delivery-script-updates' into delivery-updates
Diffstat (limited to 'scripts/lib/fontbuild/anchors.py')
-rw-r--r-- | scripts/lib/fontbuild/anchors.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/lib/fontbuild/anchors.py b/scripts/lib/fontbuild/anchors.py index 622d52a..51fb57a 100644 --- a/scripts/lib/fontbuild/anchors.py +++ b/scripts/lib/fontbuild/anchors.py @@ -27,15 +27,18 @@ def getAnchorByName(g,anchorName): if a.name == anchorName: return a - def moveMarkAnchors(f, g, anchorName, accentName, dx, dy): if "top"==anchorName: 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] + break g.appendAnchor("top", (anchor.x + int(dx), anchor.y + int(dy))) - elif "bottom"==anchorName: + elif anchorName in ["bottom", "bottomu"]: anchors = f[accentName].anchors for anchor in anchors: if "mkmkbottom_acc" == anchor.name: |