[instancer] add tests
This commit is contained in:
parent
30058f489a
commit
89d332559e
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -33,7 +33,6 @@ def generate_expected_output(input_file, unicodes, profile_flags, instance_flags
|
||||||
instance_path = os.path.join(tempfile.mkdtemp (), font_name)
|
instance_path = os.path.join(tempfile.mkdtemp (), font_name)
|
||||||
args = ["fonttools", "varLib.instancer",
|
args = ["fonttools", "varLib.instancer",
|
||||||
"--no-overlap-flag",
|
"--no-overlap-flag",
|
||||||
"--no-recalc-bounds",
|
|
||||||
"--no-recalc-timestamp",
|
"--no-recalc-timestamp",
|
||||||
"--output=%s" % instance_path,
|
"--output=%s" % instance_path,
|
||||||
input_file]
|
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)
|
fonttools_path = os.path.join(tempfile.mkdtemp (), font_name)
|
||||||
args = ["fonttools", "subset", input_path]
|
args = ["fonttools", "subset", input_path]
|
||||||
|
if instance_flags:
|
||||||
|
args.extend(["--recalc-bounds"])
|
||||||
args.extend(["--drop-tables+=DSIG",
|
args.extend(["--drop-tables+=DSIG",
|
||||||
"--drop-tables-=sbix",
|
"--drop-tables-=sbix",
|
||||||
"--no-harfbuzz-repacker", # disable harfbuzz repacker so we aren't comparing to ourself.
|
"--no-harfbuzz-repacker", # disable harfbuzz repacker so we aren't comparing to ourself.
|
||||||
|
|
Loading…
Reference in New Issue