Avoid duplicate names in glyphorder table.

When adding a single glyph that was not in the cmap, this was adding the
name for that glyph twice.
This commit is contained in:
Doug Felt 2017-02-16 15:07:47 -08:00
parent a62c0be851
commit e5146fcecb

View file

@ -204,6 +204,7 @@ for (u, filename) in img_pairs:
cp = ord(char) cp = ord(char)
if cp not in c and not is_vs(cp): if cp not in c and not is_vs(cp):
name = glyph_name (char) name = glyph_name (char)
if name not in glyph_names:
g.append(name) g.append(name)
c[cp] = name c[cp] = name
if len (u) > 1: if len (u) > 1: