[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:
parent
d65b587708
commit
26cb08062d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user