[instance] add tests for full instancing
Also update previous tests with GDEF/GPOS tables
This commit is contained in:
parent
8f84c58a34
commit
88c02e0024
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.
|
@ -0,0 +1,12 @@
|
||||||
|
FONTS:
|
||||||
|
Roboto-Variable.ttf
|
||||||
|
|
||||||
|
PROFILES:
|
||||||
|
default.txt
|
||||||
|
|
||||||
|
SUBSETS:
|
||||||
|
*
|
||||||
|
|
||||||
|
INSTANCES:
|
||||||
|
wght=150,wdth=80
|
||||||
|
wght=300,wdth=90
|
|
@ -34,9 +34,6 @@ def generate_expected_output(input_file, unicodes, profile_flags, instance_flags
|
||||||
"--drop-tables-=sbix",
|
"--drop-tables-=sbix",
|
||||||
"--unicodes=%s" % unicodes,
|
"--unicodes=%s" % unicodes,
|
||||||
"--output-file=%s" % fonttools_path])
|
"--output-file=%s" % fonttools_path])
|
||||||
#TODO: remove the drop later as instancing support is added to GPOS/GDEF.
|
|
||||||
if instance_flags:
|
|
||||||
args.extend(["--drop-tables+=GPOS,GDEF"])
|
|
||||||
args.extend(profile_flags)
|
args.extend(profile_flags)
|
||||||
check_call(args)
|
check_call(args)
|
||||||
|
|
||||||
|
@ -66,10 +63,8 @@ def generate_expected_output(input_file, unicodes, profile_flags, instance_flags
|
||||||
"--drop-tables+=DSIG",
|
"--drop-tables+=DSIG",
|
||||||
"--drop-tables-=sbix"]
|
"--drop-tables-=sbix"]
|
||||||
args.extend(profile_flags)
|
args.extend(profile_flags)
|
||||||
#TODO: remove the drop later as instancing support is added to GPOS/GDEF.
|
|
||||||
if instance_flags:
|
if instance_flags:
|
||||||
args.extend(["--drop-tables+=GDEF,GPOS",
|
args.extend(["--instance=%s" % ','.join(instance_flags)])
|
||||||
"--instance=%s" % ','.join(instance_flags)])
|
|
||||||
check_call(args)
|
check_call(args)
|
||||||
|
|
||||||
with io.StringIO () as fp:
|
with io.StringIO () as fp:
|
||||||
|
|
|
@ -53,6 +53,7 @@ tests = [
|
||||||
# instacing tests, enable when --instance is not experimental
|
# instacing tests, enable when --instance is not experimental
|
||||||
# 'pin_all_at_default',
|
# 'pin_all_at_default',
|
||||||
# 'instantiate_glyf',
|
# 'instantiate_glyf',
|
||||||
|
# 'full_instance',
|
||||||
]
|
]
|
||||||
|
|
||||||
repack_tests = [
|
repack_tests = [
|
||||||
|
|
|
@ -56,8 +56,7 @@ def run_test (test, should_check_ots):
|
||||||
"--drop-tables-=sbix"]
|
"--drop-tables-=sbix"]
|
||||||
cli_args.extend (test.get_profile_flags ())
|
cli_args.extend (test.get_profile_flags ())
|
||||||
if test.get_instance_flags ():
|
if test.get_instance_flags ():
|
||||||
cli_args.extend (["--drop-tables+=GPOS,GDEF",
|
cli_args.extend (["--instance=%s" % ','.join(test.get_instance_flags ())])
|
||||||
"--instance=%s" % ','.join(test.get_instance_flags ())])
|
|
||||||
ret = subset_cmd (cli_args)
|
ret = subset_cmd (cli_args)
|
||||||
|
|
||||||
if ret != "success":
|
if ret != "success":
|
||||||
|
|
Loading…
Reference in New Issue