diff --git a/Tests/varLib/data/SingleMaster.designspace b/Tests/varLib/data/SingleMaster.designspace new file mode 100644 index 000000000..53bdeabf9 --- /dev/null +++ b/Tests/varLib/data/SingleMaster.designspace @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/Tests/varLib/data/test_results/SingleMaster.ttx b/Tests/varLib/data/test_results/SingleMaster.ttx new file mode 100644 index 000000000..79cc76556 --- /dev/null +++ b/Tests/varLib/data/test_results/SingleMaster.ttx @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + wght + 0x0 + 400.0 + 400.0 + 400.0 + 256 + + + + + + Weight + + + Test Family + + + Regular + + + Version 1.001;ADBO;Test Family Regular + + + Test Family + + + Version 1.001 + + + TestFamily-Master0 + + + Frank Grießhammer + + + Master 0 + + + Weight + + + + diff --git a/Tests/varLib/varLib_test.py b/Tests/varLib/varLib_test.py index f7289e72b..545b98e0d 100644 --- a/Tests/varLib/varLib_test.py +++ b/Tests/varLib/varLib_test.py @@ -584,6 +584,15 @@ class BuildTest(unittest.TestCase): self.expect_ttx(varfont, expected_ttx_path, tables) self.check_ttx_dump(varfont, expected_ttx_path, tables, suffix) + def test_varlib_build_single_master(self): + self._run_varlib_build_test( + designspace_name='SingleMaster', + font_name='TestFamily', + tables=['GDEF', 'HVAR', 'MVAR', 'STAT', 'fvar', 'cvar', 'gvar', 'name'], + expected_ttx_name='SingleMaster', + save_before_dump=True, + ) + def test_kerning_merging(self): """Test the correct merging of class-based pair kerning.