[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:
parent
ebb64da7c0
commit
1a34f0bd38
@ -46,12 +46,12 @@ def setUpModule():
|
|||||||
ttf = ttLib.TTFont(recalcBBoxes=False, recalcTimestamp=False)
|
ttf = ttLib.TTFont(recalcBBoxes=False, recalcTimestamp=False)
|
||||||
ttf.importXML(TTX, quiet=True)
|
ttf.importXML(TTX, quiet=True)
|
||||||
ttf.flavor = "woff2"
|
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
|
# import CFF-flavoured test font and save it as WOFF2
|
||||||
otf = ttLib.TTFont(recalcBBoxes=False, recalcTimestamp=False)
|
otf = ttLib.TTFont(recalcBBoxes=False, recalcTimestamp=False)
|
||||||
otf.importXML(OTX, quiet=True)
|
otf.importXML(OTX, quiet=True)
|
||||||
otf.flavor = "woff2"
|
otf.flavor = "woff2"
|
||||||
otf.save(CFF_WOFF2, reorderTables=False)
|
otf.save(CFF_WOFF2, reorderTables=None)
|
||||||
|
|
||||||
|
|
||||||
class WOFF2ReaderTest(unittest.TestCase):
|
class WOFF2ReaderTest(unittest.TestCase):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user