summaryrefslogtreecommitdiff
path: root/scripts/lib/fontbuild
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-05-01 10:34:53 -0700
committerjamesgk <jamesgk19@gmail.com>2015-05-01 10:34:53 -0700
commit41516707549dc5ccc029bcb250149f8433669cb0 (patch)
treeb9491e1b0f88a0d7fa5b73dc6dadf919fa77d6b3 /scripts/lib/fontbuild
parentc4398541bd0541f872d59cd5887ecda8b61bb2ac (diff)
Remove some checks when adding anchors.
These issues are solved with the updated anchor resources.
Diffstat (limited to 'scripts/lib/fontbuild')
-rw-r--r--scripts/lib/fontbuild/mix.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/scripts/lib/fontbuild/mix.py b/scripts/lib/fontbuild/mix.py
index bd396ed..7123213 100644
--- a/scripts/lib/fontbuild/mix.py
+++ b/scripts/lib/fontbuild/mix.py
@@ -260,20 +260,7 @@ class Master:
if anchorPath:
anchorData = json.load(open(anchorPath))
for glyphName, anchors in anchorData.items():
-
- # another bug: some entire glyphs are dropped during conversion.
- # example: gbar_uni1ABE
- try:
- glyph = self.font[glyphName]
- except KeyError:
- continue
-
- # another bug: some glyphs are decomposed during conversion, in
- # which case they unexpectedly don't drop anchors.
- # examples: uni04BA, Gbar (partially decomposed)
- if glyph.anchors:
- continue
-
+ glyph = self.font[glyphName]
for name, (x, y) in anchors.items():
glyph.appendAnchor(str(name), (x, y))