From be4b2268ae11bfd7f585d71ec0678f8bdb41e0ac Mon Sep 17 00:00:00 2001 From: James Godfrey-Kittle Date: Wed, 12 Aug 2015 12:16:02 -0700 Subject: 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 --- scripts/lib/fontbuild/generateGlyph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/lib/fontbuild/generateGlyph.py') 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 -- cgit v1.2.3