[Tests/scaleUpem/VarComposite] Add test

This commit is contained in:
Behdad Esfahbod 2023-01-18 15:59:05 -07:00
parent 4310512f07
commit f2cf4eea73
3 changed files with 2064 additions and 0 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -65,6 +65,16 @@ class ScaleUpemTest(unittest.TestCase):
expected_ttx_path = self.get_path("I-512upem.ttx")
self.expect_ttx(font, expected_ttx_path, tables)
def test_scale_upem_varComposite(self):
font = TTFont(self.get_path("varc-ac00-ac01.ttf"))
tables = [table_tag for table_tag in font.keys() if table_tag != "head"]
scale_upem(font, 500)
expected_ttx_path = self.get_path("varc-ac00-ac01-500upem.ttx")
self.expect_ttx(font, expected_ttx_path, tables)
def test_scale_upem_otf(self):
# Just test that it doesn't crash