Browse Source

subset webfonts when running make (PR #238 from m4rc1e/web)

Dave Crossland 8 years ago
parent
commit
4a1d026a82
2 changed files with 5 additions and 7 deletions
  1. 5 3
      Makefile
  2. 0 4
      scripts/run_web_tests.py

+ 5 - 3
Makefile

@@ -64,9 +64,11 @@ web:
 			src/hinted/Roboto-*) unhinted=out/RobotoTTF/$$basename ;; \
 			*) unhinted=out/RobotoCondensedTTF/$$basename ;; \
 		esac; \
-		final=out/web/$$basename; \
-		python scripts/touchup_for_web.py $$source $$unhinted $$final Roboto; \
-		if [[ $$? -ne 0 ]]; then exit 1; fi; \
+		touched=$$(mktemp); \
+		final=out/web/$$(basename $$source); \
+		python scripts/touchup_for_web.py $$source $$unhinted $$touched Roboto && \
+		python scripts/subset_for_web.py $$touched $$final && \
+		rm $$touched; \
 	done
 
 chromeos:

+ 0 - 4
scripts/run_web_tests.py

@@ -102,10 +102,6 @@ class TestLigatures(run_general_tests.TestLigatures):
     loaded_fonts = FONTS
 
 
-class TestFeatures(run_general_tests.TestFeatures):
-    loaded_fonts = FONTS
-
-
 class TestGlyphBounds(run_general_tests.TestGlyphBounds):
     loaded_fonts = FONTS