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.
pull/92/head
Doug Felt 2017-02-16 15:07:47 -08:00
parent a62c0be851
commit e5146fcecb
1 changed files with 2 additions and 1 deletions

View File

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