diff options
author | James Godfrey-Kittle <jamesgk@google.com> | 2015-04-22 09:51:51 -0700 |
---|---|---|
committer | jamesgk <jamesgk19@gmail.com> | 2015-04-22 09:51:51 -0700 |
commit | 6fc33a1fac927f33bb38274c9c334355fc4ae77e (patch) | |
tree | f8e873667bc8246ca47a31320c77cda5c3b67446 /scripts/lib/fontbuild/mix.py | |
parent | 79408d7a4c8cf3442b51727556e7f46366a126e0 (diff) |
Make glyph anchor info prettier.
Diffstat (limited to 'scripts/lib/fontbuild/mix.py')
-rw-r--r-- | scripts/lib/fontbuild/mix.py | 5 |
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) |