[instancer] add tests

This commit is contained in:
Qunxin Liu 2023-01-20 14:15:19 -08:00
parent 30058f489a
commit 89d332559e
15 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,6 @@ def generate_expected_output(input_file, unicodes, profile_flags, instance_flags
instance_path = os.path.join(tempfile.mkdtemp (), font_name)
args = ["fonttools", "varLib.instancer",
"--no-overlap-flag",
"--no-recalc-bounds",
"--no-recalc-timestamp",
"--output=%s" % instance_path,
input_file]
@ -43,6 +42,8 @@ def generate_expected_output(input_file, unicodes, profile_flags, instance_flags
fonttools_path = os.path.join(tempfile.mkdtemp (), font_name)
args = ["fonttools", "subset", input_path]
if instance_flags:
args.extend(["--recalc-bounds"])
args.extend(["--drop-tables+=DSIG",
"--drop-tables-=sbix",
"--no-harfbuzz-repacker", # disable harfbuzz repacker so we aren't comparing to ourself.