def test_importTTX(self, testufo): compiler = OutlineOTFCompiler(testufo) otf = compiler.otf = TTFont(sfntVersion="OTTO") compiler.importTTX() assert "CUST" in otf assert otf["CUST"].data == b"\x00\x01\xbe\xef" assert otf.sfntVersion == "OTTO"
def test_importTTX(self): compiler = OutlineOTFCompiler(self.ufo) otf = compiler.otf = TTFont(sfntVersion="OTTO") compiler.importTTX() self.assertIn("CUST", otf) self.assertEqual(otf["CUST"].data, b"\x00\x01\xbe\xef") self.assertEqual(otf.sfntVersion, "OTTO")