[Tests/scaleUpem/VarComposite] Add test
This commit is contained in:
parent
4310512f07
commit
f2cf4eea73
2054
Tests/ttLib/data/varc-ac00-ac01-500upem.ttx
Normal file
2054
Tests/ttLib/data/varc-ac00-ac01-500upem.ttx
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Tests/ttLib/data/varc-ac00-ac01.ttf
Normal file
BIN
Tests/ttLib/data/varc-ac00-ac01.ttf
Normal file
Binary file not shown.
@ -65,6 +65,16 @@ class ScaleUpemTest(unittest.TestCase):
|
|||||||
expected_ttx_path = self.get_path("I-512upem.ttx")
|
expected_ttx_path = self.get_path("I-512upem.ttx")
|
||||||
self.expect_ttx(font, expected_ttx_path, tables)
|
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):
|
def test_scale_upem_otf(self):
|
||||||
|
|
||||||
# Just test that it doesn't crash
|
# Just test that it doesn't crash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user