[subset] Add integration tests for SingleSubst.
This commit is contained in:
parent
f49a5bec9f
commit
c740c8636b
@ -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.
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.
BIN
test/subset/data/fonts/Roboto-Regular.smallcaps.ttf
Normal file
BIN
test/subset/data/fonts/Roboto-Regular.smallcaps.ttf
Normal file
Binary file not shown.
2
test/subset/data/profiles/keep-layout-retain-gids.txt
Normal file
2
test/subset/data/profiles/keep-layout-retain-gids.txt
Normal file
@ -0,0 +1,2 @@
|
||||
--drop-tables-=GSUB,GPOS
|
||||
--retain-gids
|
1
test/subset/data/profiles/keep-layout.txt
Normal file
1
test/subset/data/profiles/keep-layout.txt
Normal file
@ -0,0 +1 @@
|
||||
--drop-tables-=GSUB,GPOS
|
@ -9,4 +9,3 @@ SUBSETS:
|
||||
abc
|
||||
Ǽ!A bc
|
||||
×ØÙÚÞ
|
||||
|
||||
|
13
test/subset/data/tests/layout.tests
Normal file
13
test/subset/data/tests/layout.tests
Normal file
@ -0,0 +1,13 @@
|
||||
FONTS:
|
||||
Roboto-Regular.smallcaps.ttf
|
||||
|
||||
PROFILES:
|
||||
keep-layout.txt
|
||||
keep-layout-retain-gids.txt
|
||||
|
||||
SUBSETS:
|
||||
ABC
|
||||
AC
|
||||
C
|
||||
A
|
||||
ÊË
|
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user