Merge pull request #871 from googlefonts/mplus

[subset] Add a Japanese font to the subset integration tests.
pull/872/head
Garret Rieger 7 years ago committed by GitHub
commit dbe552770f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      test/subset/data/Makefile.am
  2. 1
      test/subset/data/Makefile.sources
  3. BIN
      test/subset/data/expected/japanese/Mplus1p-Regular.default.3042,3044,3046,3048,304A,304B.ttf
  4. BIN
      test/subset/data/expected/japanese/Mplus1p-Regular.default.3042,3044,3046,73E0,5EA6,8F38.ttf
  5. BIN
      test/subset/data/expected/japanese/Mplus1p-Regular.default.61,63,65,6B.ttf
  6. BIN
      test/subset/data/expected/japanese/Mplus1p-Regular.default.660E,6975,73E0,5EA6,8F38,6E05.ttf
  7. BIN
      test/subset/data/expected/japanese/Mplus1p-Regular.default.660E.ttf
  8. BIN
      test/subset/data/expected/japanese/Mplus1p-Regular.drop-hints.3042,3044,3046,3048,304A,304B.ttf
  9. BIN
      test/subset/data/expected/japanese/Mplus1p-Regular.drop-hints.3042,3044,3046,73E0,5EA6,8F38.ttf
  10. BIN
      test/subset/data/expected/japanese/Mplus1p-Regular.drop-hints.61,63,65,6B.ttf
  11. BIN
      test/subset/data/expected/japanese/Mplus1p-Regular.drop-hints.660E,6975,73E0,5EA6,8F38,6E05.ttf
  12. BIN
      test/subset/data/expected/japanese/Mplus1p-Regular.drop-hints.660E.ttf
  13. BIN
      test/subset/data/fonts/Mplus1p-Regular.ttf
  14. 16
      test/subset/data/tests/japanese.tests
  15. 8
      test/subset/run-tests.py

@ -9,6 +9,7 @@ EXTRA_DIST = \
$(TESTS) \
expected/basics \
expected/full-font \
expected/japanese \
fonts \
profiles \
$(NULL)

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

@ -0,0 +1,16 @@
FONTS:
Mplus1p-Regular.ttf
PROFILES:
default.txt
drop-hints.txt
SUBSETS:
acek
明極珠度輸清
あいうえおか
あいう珠度輸

@ -19,9 +19,9 @@ from subset_test_suite import SubsetTestSuite
def cmd(command):
p = subprocess.Popen (
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
p.wait ()
print (p.stderr.read (), end="") # file=sys.stderr
return p.stdout.read (), p.returncode
(stdoutdata, stderrdata) = p.communicate()
print (stderrdata, end="") # file=sys.stderr
return stdoutdata, p.returncode
def read_binary(file_path):
with open(file_path, 'rb') as f:
@ -60,6 +60,7 @@ def run_test(test, should_check_ots):
if return_code:
return fail_test(test, cli_args, "ttx (actual) returned %d" % (return_code))
print ("stripping checksums.")
expected_ttx = strip_check_sum (expected_ttx)
actual_ttx = strip_check_sum (actual_ttx)
@ -77,6 +78,7 @@ def run_test(test, should_check_ots):
return 0
def run_ttx(file):
print ("ttx %s" % file)
cli_args = ["ttx",
"-o-",
file]

Loading…
Cancel
Save