[subset] Add subset integration tests using the full roboto font.

pull/845/head
Garret Rieger 7 years ago
parent 33f4381314
commit d31ace3274
  1. 1
      test/subset/data/Makefile.sources
  2. BIN
      test/subset/data/expected/full-font/Roboto-Regular.default.1FC,21,41,20,62,63.ttf
  3. BIN
      test/subset/data/expected/full-font/Roboto-Regular.default.61,62,63.ttf
  4. BIN
      test/subset/data/fonts/Roboto-Regular.ttf
  5. 10
      test/subset/data/tests/full-font.tests
  6. 12
      test/subset/generate-expected-outputs.py

@ -1,5 +1,6 @@
TESTS = \
tests/basics.tests \
tests/full-font.tests \
$(NULL)
XFAIL_TESTS = \

@ -0,0 +1,10 @@
FONTS:
Roboto-Regular.ttf
PROFILES:
default.txt
SUBSETS:
abc
Ǽ!A bc

@ -17,10 +17,14 @@ def usage():
def generate_expected_output(input_file, unicodes, output_path):
check_call(["fonttools", "subset",
input_file,
"--drop-tables+=DSIG,GPOS,GSUB,GDEF",
"--unicodes=%s" % unicodes,
"--output-file=%s" % output_path])
input_file,
"--notdef-outline",
"--name-IDs=*",
"--name-languages=*",
"--name-legacy",
"--drop-tables+=DSIG,GPOS,GSUB,GDEF",
"--unicodes=%s" % unicodes,
"--output-file=%s" % output_path])
args = sys.argv[1:]

Loading…
Cancel
Save