Esempio n. 1
0
 def test_setupTable_gasp(self):
     compiler = OutlineTTFCompiler(self.ufo)
     compiler.otf = TTFont()
     compiler.setupTable_gasp()
     self.assertTrue('gasp' in compiler.otf)
     self.assertEqual(compiler.otf['gasp'].gaspRange,
                      {7: 10, 65535: 15})
Esempio n. 2
0
 def test_setupTable_gasp(self, testufo):
     compiler = OutlineTTFCompiler(testufo)
     compiler.otf = TTFont()
     compiler.setupTable_gasp()
     assert "gasp" in compiler.otf
     assert compiler.otf["gasp"].gaspRange == {7: 10, 65535: 15}