This commit is contained in:
Behdad Esfahbod 2013-08-14 19:49:53 -04:00
parent 4734be5370
commit 4e5d967963

View File

@ -94,7 +94,7 @@ def subset(self, glyphs, remap=False):
# if no glyph will ever /not match/, we can optimize class 0 out too.
indices = _uniq_sort(
([0] if any(g not in self.classDefs for g in glyphs) else []) +
self.classDefs.itervalues())
self.classDefs.values())
if remap:
self.remap(indices)
return indices