Exemplo n.º 1
0
 def test_autoUseMyMetrics_None(self):
     ufo = getTestUFO('UseMyMetrics')
     compiler = OutlineTTFCompiler(ufo)
     # setting 'autoUseMyMetrics' attribute to None disables the feature
     compiler.autoUseMyMetrics = None
     ttf = compiler.compile()
     self.assertFalse(ttf['glyf']['Iacute'].components[1].flags
                      & USE_MY_METRICS)
Exemplo n.º 2
0
 def test_autoUseMyMetrics_None(self, use_my_metrics_ufo):
     compiler = OutlineTTFCompiler(use_my_metrics_ufo)
     # setting 'autoUseMyMetrics' attribute to None disables the feature
     compiler.autoUseMyMetrics = None
     ttf = compiler.compile()
     assert not (ttf["glyf"]["Iacute"].components[1].flags & USE_MY_METRICS)