Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
subset webfonts when running make (PR #238 from m4rc1e/web)
Browse files Browse the repository at this point in the history
  • Loading branch information
davelab6 authored Mar 20, 2017
2 parents 0d86e31 + b61ba8c commit 4a1d026
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 0 additions & 4 deletions scripts/run_web_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4a1d026

Please sign in to comment.