Save auto-generated font metrics data to separate JSON file

This separates auto-generated code from manually created code.
We need a more recent version of browserify to directly require JSON.
Note that the data was copied, not recreated, so it has not been changed.
This addresses issue #301.
This commit is contained in:
Martin von Gagern
2015-07-09 15:01:22 +02:00
parent 1f8610cebe
commit 1603162267
6 changed files with 6 additions and 22 deletions

View File

@@ -83,7 +83,7 @@ PERL=perl
PYTHON=$(shell python2 --version >/dev/null 2>&1 && echo python2 || echo python)
metrics:
cd metrics && $(PERL) ./mapping.pl | $(PYTHON) ./extract_tfms.py | $(PYTHON) ./extract_ttfs.py | $(PYTHON) ./replace_line.py
cd metrics && $(PERL) ./mapping.pl | $(PYTHON) ./extract_tfms.py | $(PYTHON) ./extract_ttfs.py > ../src/fontMetricsData.json
clean:
rm -rf build/*