summaryrefslogtreecommitdiff
path: root/scripts/lib/fontbuild/mix.py
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-04-22 09:51:51 -0700
committerjamesgk <jamesgk19@gmail.com>2015-04-22 09:51:51 -0700
commit6fc33a1fac927f33bb38274c9c334355fc4ae77e (patch)
treef8e873667bc8246ca47a31320c77cda5c3b67446 /scripts/lib/fontbuild/mix.py
parent79408d7a4c8cf3442b51727556e7f46366a126e0 (diff)
Make glyph anchor info prettier.
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)