Ejemplo n.º 1
0
 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"
Ejemplo n.º 2
0
 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")