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)
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)