def test_upsilontonos_narrow(self):
        """Test that the tonos in Upsilontonos is not too far left.
        Bug: https://github.com/google/roboto/issues/154
        """

        for filename, font in zip(self.font_files, self.fonts):
            glyph_set = font.getGlyphSet()
            glyph = glyph_set['Upsilontonos']._glyph

            # accept within an x bound based on weight, where xMin=-150 is about
            # what is expected for regular, -110 for light, -190 for medium
            bound = -(150 + (font['OS/2'].usWeightClass - 400) * 0.4)
            self.assertTrue(
                glyph.xMin > bound, 'Upsilontonos extends far to the left and may '
                'be susceptible to aggressive clipping. %s %d' % (filename, glyph.xMin))
dataset/ETHPy150Open google/roboto/scripts/run_general_tests.py/TestRobotoRegressions.test_upsilontonos_narrow/original