mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-13 15:08:39 +00:00
build: move font generation to the main repo (#2837)
* build: move font generation to the main repo * Update fonts * chore: remove submodules * Update paths * Update fonts.yml Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
This commit is contained in:
7
dockers/fonts/buildMetrics.sh
Executable file
7
dockers/fonts/buildMetrics.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Generates fontMetricsData.js
|
||||
PERL="perl"
|
||||
PYTHON=`python2 --version >/dev/null 2>&1 && echo python2 || echo python`
|
||||
|
||||
cd src/metrics
|
||||
$PERL ./mapping.pl | $PYTHON ./extract_tfms.py | $PYTHON ./extract_ttfs.py | $PYTHON ./format_json.py --width > ../fontMetricsData.js
|
Reference in New Issue
Block a user