[subset] Add integration tests for SingleSubst.

This commit is contained in:
Garret Rieger 2019-05-16 10:57:33 -07:00
parent f49a5bec9f
commit c740c8636b
17 changed files with 19 additions and 2 deletions

View File

@ -2,6 +2,7 @@ TESTS = \
tests/basics.tests \
tests/full-font.tests \
tests/japanese.tests \
tests/layout.tests \
$(NULL)
XFAIL_TESTS = \

Binary file not shown.

View File

@ -0,0 +1,2 @@
--drop-tables-=GSUB,GPOS
--retain-gids

View File

@ -0,0 +1 @@
--drop-tables-=GSUB,GPOS

View File

@ -9,4 +9,3 @@ SUBSETS:
abc
Ǽ!A bc
×ØÙÚÞ

View File

@ -0,0 +1,13 @@
FONTS:
Roboto-Regular.smallcaps.ttf
PROFILES:
keep-layout.txt
keep-layout-retain-gids.txt
SUBSETS:
ABC
AC
C
A
ÊË

View File

@ -19,14 +19,15 @@ def usage():
def generate_expected_output(input_file, unicodes, profile_flags, output_path):
args = ["fonttools", "subset", input_file]
args.extend(profile_flags)
args.extend(["--notdef-outline",
"--name-IDs=*",
"--name-languages=*",
"--name-legacy",
"--drop-tables+=DSIG,GPOS,GSUB,GDEF",
"--layout-features=*",
"--unicodes=%s" % unicodes,
"--output-file=%s" % output_path])
args.extend(profile_flags)
check_call(args)