[woff2_test] no need to reorder tables when saving test WOFF2 fonts

the WOFF2 encoder currently must reorder them alphabetically in any case (for compatibility with the legacy OTS), so we don't need to do it twice
This commit is contained in:
Cosimo Lupo 2015-08-19 17:00:43 +01:00
parent ebb64da7c0
commit 1a34f0bd38

View File

@ -46,12 +46,12 @@ def setUpModule():
ttf = ttLib.TTFont(recalcBBoxes=False, recalcTimestamp=False)
ttf.importXML(TTX, quiet=True)
ttf.flavor = "woff2"
ttf.save(TT_WOFF2, reorderTables=False)
ttf.save(TT_WOFF2, reorderTables=None)
# import CFF-flavoured test font and save it as WOFF2
otf = ttLib.TTFont(recalcBBoxes=False, recalcTimestamp=False)
otf.importXML(OTX, quiet=True)
otf.flavor = "woff2"
otf.save(CFF_WOFF2, reorderTables=False)
otf.save(CFF_WOFF2, reorderTables=None)
class WOFF2ReaderTest(unittest.TestCase):