Fix issue #1516: subset VVAR (#1517)

* fix #issue 1516: subset VOrgMap

* fixed BsbMap as well

* fix bad edit
This commit is contained in:
Michiharu Ariza 2019-02-22 16:23:04 -08:00 committed by Behdad Esfahbod
parent 1fccfacb3d
commit c8d4149b32

View File

@ -1852,9 +1852,9 @@ def subset_glyphs(self, s):
if table.TsbMap:
table.TsbMap.mapping = {k:varidx_map[v] for k,v in table.TsbMap.mapping.items()}
if table.BsbMap:
table.RsbMap.mapping = {k:varidx_map[v] for k,v in table.RsbMap.mapping.items()}
table.BsbMap.mapping = {k:varidx_map[v] for k,v in table.BsbMap.mapping.items()}
if table.VOrgMap:
table.RsbMap.mapping = {k:varidx_map[v] for k,v in table.RsbMap.mapping.items()}
table.VOrgMap.mapping = {k:varidx_map[v] for k,v in table.VOrgMap.mapping.items()}
# TODO Return emptiness...
return True