summaryrefslogtreecommitdiff
path: root/scripts/lib/fontbuild/mix.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/fontbuild/mix.py')
-rw-r--r--scripts/lib/fontbuild/mix.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/lib/fontbuild/mix.py b/scripts/lib/fontbuild/mix.py
index cc0a0a8..1944258 100644
--- a/scripts/lib/fontbuild/mix.py
+++ b/scripts/lib/fontbuild/mix.py
@@ -255,13 +255,14 @@ class Master:
font.insertGlyph(overlayGlyph)
if anchorPath:
- for glyphName, anchors in json.loads(open(anchorPath).read()):
+ anchorData = json.loads(open(anchorPath).read())
+ for glyphName, anchors in anchorData.items():
if not self.font.has_key(glyphName):
continue
glyph = self.font[glyphName]
if glyph.anchors:
continue
- for name, x, y in anchors:
+ for name, (x, y) in anchors.items():
glyph.appendAnchor(str(name), (x, y))
self.ffont = FFont(self.font)