mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
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.
716 B
716 B
How to generate new metrics
There are several requirements for generating the metrics used by KaTeX.
-
You need to have an installation of TeX which supports kpathsea. You can check this by running
tex --version
, and seeing if it has a line that looks likekpathsea version 6.2.0
-
You need the JSON module for perl. You can install this either from CPAN or with your package manager.
-
You need the python fontforge module. This is probably either installed with fontforge or can be installed from your package manager.
Once you have these things, run
make metrics
which should generate new metrics and place them into fontMetricsData.json
.
You're done!