Ejemplo n.º 1
0
    def test_varlib_mutator_CFF2(self):

        otf_vf_path = self.get_test_input('TestCFF2VF.otf')
        expected_ttx_name = 'InterpolateTestCFF2VF'
        tables = ["hmtx", "CFF2"]
        loc = {'wght': float(200)}

        varfont = TTFont(otf_vf_path)
        new_font = make_instance(varfont, loc)
        expected_ttx_path = self.get_test_output(expected_ttx_name + '.ttx')
        self.expect_ttx(new_font, expected_ttx_path, tables)
Ejemplo n.º 2
0
    def test_varlib_mutator_CFF2(self):

        otf_vf_path = self.get_test_input('TestCFF2VF.otf')
        expected_ttx_name = 'InterpolateTestCFF2VF'
        tables = ["hmtx", "CFF2"]
        loc = {'wght':float(200)}

        varfont = TTFont(otf_vf_path)
        new_font = make_instance(varfont, loc)
        expected_ttx_path = self.get_test_output(expected_ttx_name + '.ttx')
        self.expect_ttx(new_font, expected_ttx_path, tables)
Ejemplo n.º 3
0
    def test_varlib_mutator_CFF2(self):
        suffix = '.otf'
        ttx_dir = self.get_test_input('master_ttx_varfont_otf')

        self.temp_dir()
        ttx_paths = self.get_file_list(ttx_dir, '.ttx', 'TestCFF2VF')
        for path in ttx_paths:
            self.compile_font(path, suffix, self.tempdir)

        varfont_name = 'TestCFF2VF'
        varfont_path = os.path.join(self.tempdir, varfont_name + suffix)

        expected_ttx_name = 'InterpolateTestCFF2VF'
        tables = ["hmtx", "CFF2"]
        loc = {'wght': float(200)}

        varfont = TTFont(varfont_path)
        new_font = make_instance(varfont, loc)
        expected_ttx_path = self.get_test_output(expected_ttx_name + '.ttx')
        self.expect_ttx(new_font, expected_ttx_path, tables)
Ejemplo n.º 4
0
    def test_varlib_mutator_CFF2(self):
        suffix = '.otf'
        ttx_dir = self.get_test_input('master_ttx_varfont_otf')

        self.temp_dir()
        ttx_paths = self.get_file_list(ttx_dir, '.ttx', 'TestCFF2VF')
        for path in ttx_paths:
            self.compile_font(path, suffix, self.tempdir)

        varfont_name = 'TestCFF2VF'
        varfont_path = os.path.join(self.tempdir, varfont_name + suffix)

        expected_ttx_name = 'InterpolateTestCFF2VF'
        tables = ["hmtx", "CFF2"]
        loc = {'wght':float(200)}

        varfont = TTFont(varfont_path)
        new_font = make_instance(varfont, loc)
        expected_ttx_path = self.get_test_output(expected_ttx_name + '.ttx')
        self.expect_ttx(new_font, expected_ttx_path, tables)