mirror of
https://github.com/googlefonts/noto-emoji.git
synced 2025-06-08 15:57:59 +00:00
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:
parent
a62c0be851
commit
e5146fcecb
1 changed files with 2 additions and 1 deletions
3
third_party/color_emoji/add_glyphs.py
vendored
3
third_party/color_emoji/add_glyphs.py
vendored
|
@ -204,7 +204,8 @@ 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)
|
||||||
g.append(name)
|
if name not in glyph_names:
|
||||||
|
g.append(name)
|
||||||
c[cp] = name
|
c[cp] = name
|
||||||
if len (u) > 1:
|
if len (u) > 1:
|
||||||
h[name] = [0, 0]
|
h[name] = [0, 0]
|
||||||
|
|
Loading…
Add table
Reference in a new issue