[merge] Remove _glyphsAreSame() check
This was removing semantically-significant difference amongst glyphs such as two identical glyphs one in Noto Sans Tamil one in Noto Sans Grantha as in the following issue: Part of fixing https://github.com/fonttools/fonttools/issues/2475
This commit is contained in:
parent
672b4032ad
commit
b63f6413ca
@ -489,8 +489,8 @@ def merge(self, m, tables):
|
||||
for idx in (fontIdx, oldFontIdx):
|
||||
if glyphSets[idx] is None:
|
||||
glyphSets[idx] = m.fonts[idx].getGlyphSet()
|
||||
if _glyphsAreSame(glyphSets[oldFontIdx], glyphSets[fontIdx], oldgid, gid):
|
||||
continue
|
||||
#if _glyphsAreSame(glyphSets[oldFontIdx], glyphSets[fontIdx], oldgid, gid):
|
||||
# continue
|
||||
m.duplicateGlyphsPerFont[fontIdx][oldgid] = gid
|
||||
elif m.duplicateGlyphsPerFont[fontIdx][oldgid] != gid:
|
||||
# Char previously mapped to oldgid but oldgid is already remapped to a different
|
||||
|
Loading…
x
Reference in New Issue
Block a user