fix issue Partial ttfautohint check on GAppEngine
@@ -2450,12 +2450,6 @@ def check_font_has_latest_ttfautohint_applied(fb, font, ttfautohint_missing):
used = map(int, used.split("."))
return installed > used
- if ttfautohint_missing:
- fb.skip("This check requires ttfautohint"
- " to be available in the system.")
- elif fb.config['webapp'] is True:
- fb.skip("This check is not supported on Google App Engine.")
- else:
version_strings = get_name_string(font, NAMEID_VERSION_STRING)
ttfa_version = ttfautohint_version(version_strings)
if len(version_strings) == 0:
@@ -2467,6 +2461,11 @@ def check_font_has_latest_ttfautohint_applied(fb, font, ttfautohint_missing):
" It is typically specified as a comment"
" in the font version entry of the 'name' table."
" Font version string is: '{}'").format(version_strings[0]))
+ elif fb.config['webapp'] is True:
+ fb.skip("We are currently unable to run ttfautohint on Google App Engine.")
+ elif ttfautohint_missing:
+ fb.skip("This check requires ttfautohint"
+ " to be available in the system.")
else:
import subprocess
ttfa_cmd = ["ttfautohint",
@@ -2477,7 +2476,7 @@ def check_font_has_latest_ttfautohint_applied(fb, font, ttfautohint_missing):
try:
if installed_version_is_newer(installed_ttfa,
ttfa_version):
- fb.info(("Ttfautohint used in font = {};"
+ fb.info(("ttfautohint used in font = {};"
" installed = {}; Need to re-run"
" with the newer version!").format(ttfa_version,
installed_ttfa))
