diff options
author | James Godfrey-Kittle <jamesgk@google.com> | 2015-08-12 12:16:02 -0700 |
---|---|---|
committer | James Godfrey-Kittle <jamesgk@google.com> | 2015-08-12 12:27:22 -0700 |
commit | be4b2268ae11bfd7f585d71ec0678f8bdb41e0ac (patch) | |
tree | 4325898a394a9de6d972265bb8883dcf24eacb64 | |
parent | 62eedc248f25ad9e6cf554505b1152c368192d31 (diff) |
Add top anchors to composite .smcp, .NAV glyphs.
I'm not sure why we weren't doing this before, or why there is even a
check to prevent adding top or bottom anchors to glyphs without
unicode values. But this change seems appropriate, particularly since
it fixes #69
-rw-r--r-- | scripts/lib/fontbuild/generateGlyph.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/fontbuild/generateGlyph.py b/scripts/lib/fontbuild/generateGlyph.py index 5f60683..18952e0 100644 --- a/scripts/lib/fontbuild/generateGlyph.py +++ b/scripts/lib/fontbuild/generateGlyph.py @@ -44,10 +44,10 @@ def copyMarkAnchors(f, g, srcname, width): g.appendAnchor(anchor.name, (anchor.x + width, anchor.y)) if "top" == anchor.name: if g.unicode == None: - if -1 == find(g.name, ".ccmp"): + if not g.name.endswith(('.ccmp', '.smcp', '.NAV')): continue if False == (g.unicode in unicode_range): - if -1 == find(g.name, ".ccmp"): + if not g.name.endswith(('.ccmp', '.smcp', '.NAV')): continue #if g.unicode > 0x02B0: # continue |