[subset] More fixing of (Chain)ContextFormat2

This is follow up to 98b60757ab9bb0aaa3c1f136e5a837a1b73d22ed
Looks like this lookup type is a curse to stay with us.  Sigh...
This commit is contained in:
Behdad Esfahbod 2014-06-05 18:24:53 -04:00
parent d65b587708
commit 26cb08062d

View File

@ -674,6 +674,8 @@ def subset_glyphs(self, s):
rss = [rss if i in indices else None for i,rss in enumerate(rss)]
while rss and rss[-1] is None:
del rss[-1]
setattr(self, c.RuleSet, rss)
setattr(self, c.RuleSetCount, len(rss))
for rs in rss:
if not rs: continue