Fix class2defs self overlapping glyphsets
This commit is contained in:
parent
47c85d9afa
commit
75f314b149
@ -2558,11 +2558,13 @@ class ClassDefBuilder(object):
|
|||||||
if isinstance(glyphs, (set, frozenset)):
|
if isinstance(glyphs, (set, frozenset)):
|
||||||
glyphs = sorted(glyphs)
|
glyphs = sorted(glyphs)
|
||||||
glyphs = tuple(glyphs)
|
glyphs = tuple(glyphs)
|
||||||
|
tempglyphs = set()
|
||||||
if glyphs in self.classes_:
|
if glyphs in self.classes_:
|
||||||
return True
|
return True
|
||||||
for glyph in glyphs:
|
for glyph in glyphs:
|
||||||
if glyph in self.glyphs_:
|
if glyph in self.glyphs_ or glyph in tempglyphs:
|
||||||
return False
|
return False
|
||||||
|
tempglyphs.add(glyph)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def add(self, glyphs):
|
def add(self, glyphs):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user