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
|
# normal
|
||||||
else:
|
else:
|
||||||
groups = self._readGroups()
|
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:
|
if validate:
|
||||||
valid, message = groupsValidator(groups)
|
valid, message = groupsValidator(groups)
|
||||||
if not valid:
|
if not valid:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user