You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 1856 - 1857 in fonttools/Lib/fontTools/subset/__init__.py reads:
if table.VOrgMap:
table.RsbMap.mapping = {k:varidx_map[v] for k,v in table.RsbMap.mapping.items()}
It should be:
if table.VOrgMap:
table.VOrgMap.mapping = {k:varidx_map[v] for k,v in table.VOrgMap.mapping.items()}
Otherwise subsetting VVAR table with non-empty VOrgMap fails as:
Traceback (most recent call last):
File "/usr/local/bin/pyftsubset", line 11, in <module>
load_entry_point('fonttools==3.37.4.dev0', 'console_scripts', 'pyftsubset')()
File "/usr/local/lib/python2.7/site-packages/fonttools-3.37.4.dev0-py2.7.egg/fontTools/misc/loggingTools.py", line 375, in wrapper
return func(*args, **kwds)
File "/usr/local/lib/python2.7/site-packages/fonttools-3.37.4.dev0-py2.7.egg/fontTools/subset/__init__.py", line 2827, in main
subsetter.subset(font)
File "/usr/local/lib/python2.7/site-packages/fonttools-3.37.4.dev0-py2.7.egg/fontTools/subset/__init__.py", line 2630, in subset
self._subset_glyphs(font)
File "/usr/local/lib/python2.7/site-packages/fonttools-3.37.4.dev0-py2.7.egg/fontTools/subset/__init__.py", line 2576, in _subset_glyphs
retain = table.subset_glyphs(self)
File "/usr/local/lib/python2.7/site-packages/fonttools-3.37.4.dev0-py2.7.egg/fontTools/subset/__init__.py", line 1857, in subset_glyphs
table.RsbMap.mapping = {k:varidx_map[v] for k,v in table.RsbMap.mapping.items()}
File "/usr/local/lib/python2.7/site-packages/fonttools-3.37.4.dev0-py2.7.egg/fontTools/ttLib/tables/otBase.py", line 546, in __getattr__
raise AttributeError(attr)
The text was updated successfully, but these errors were encountered:
Line 1856 - 1857 in
fonttools/Lib/fontTools/subset/__init__.py
reads:It should be:
Otherwise subsetting VVAR table with non-empty VOrgMap fails as:
The text was updated successfully, but these errors were encountered: