Merge pull request #871 from googlefonts/mplus
[subset] Add a Japanese font to the subset integration tests.
This commit is contained in:
commit
dbe552770f
|
@ -9,6 +9,7 @@ EXTRA_DIST = \
|
||||||
$(TESTS) \
|
$(TESTS) \
|
||||||
expected/basics \
|
expected/basics \
|
||||||
expected/full-font \
|
expected/full-font \
|
||||||
|
expected/japanese \
|
||||||
fonts \
|
fonts \
|
||||||
profiles \
|
profiles \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
TESTS = \
|
TESTS = \
|
||||||
tests/basics.tests \
|
tests/basics.tests \
|
||||||
tests/full-font.tests \
|
tests/full-font.tests \
|
||||||
|
tests/japanese.tests \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
XFAIL_TESTS = \
|
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.
Binary file not shown.
|
@ -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):
|
def cmd(command):
|
||||||
p = subprocess.Popen (
|
p = subprocess.Popen (
|
||||||
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
p.wait ()
|
(stdoutdata, stderrdata) = p.communicate()
|
||||||
print (p.stderr.read (), end="") # file=sys.stderr
|
print (stderrdata, end="") # file=sys.stderr
|
||||||
return p.stdout.read (), p.returncode
|
return stdoutdata, p.returncode
|
||||||
|
|
||||||
def read_binary(file_path):
|
def read_binary(file_path):
|
||||||
with open(file_path, 'rb') as f:
|
with open(file_path, 'rb') as f:
|
||||||
|
@ -60,6 +60,7 @@ def run_test(test, should_check_ots):
|
||||||
if return_code:
|
if return_code:
|
||||||
return fail_test(test, cli_args, "ttx (actual) returned %d" % (return_code))
|
return fail_test(test, cli_args, "ttx (actual) returned %d" % (return_code))
|
||||||
|
|
||||||
|
print ("stripping checksums.")
|
||||||
expected_ttx = strip_check_sum (expected_ttx)
|
expected_ttx = strip_check_sum (expected_ttx)
|
||||||
actual_ttx = strip_check_sum (actual_ttx)
|
actual_ttx = strip_check_sum (actual_ttx)
|
||||||
|
|
||||||
|
@ -77,6 +78,7 @@ def run_test(test, should_check_ots):
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
def run_ttx(file):
|
def run_ttx(file):
|
||||||
|
print ("ttx %s" % file)
|
||||||
cli_args = ["ttx",
|
cli_args = ["ttx",
|
||||||
"-o-",
|
"-o-",
|
||||||
file]
|
file]
|
||||||
|
|
Loading…
Reference in New Issue