Add code that removes duplicates when parsing groups.plist
This commit is contained in:
parent
dfdab70e10
commit
2b654a1d2a
@ -476,6 +476,10 @@ class UFOReader(_UFOBaseIO):
|
||||
# normal
|
||||
else:
|
||||
groups = self._readGroups()
|
||||
# remove any duplicate glyphs in a kerning group
|
||||
for groupName, glyphList in groups.items():
|
||||
if groupName.startswith('public.kern1.') or groupName.startswith('public.kern2.'):
|
||||
glyphList = list(OrderedDict.fromkeys(glyphList))
|
||||
if validate:
|
||||
valid, message = groupsValidator(groups)
|
||||
if not valid:
|
||||
|
Loading…
x
Reference in New Issue
Block a user