You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Priyanka Punukollu 267a7b1e4f Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
..
README.md Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
extract_tfms.py Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
extract_ttfs.py Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
format_json.py Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
mapping.pl Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago
parse_tfm.py Merge remote main into local — keep all agent feature files and Angular UI changes 1 month ago

README.md

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 like

    kpathsea version 6.2.0

  • You need the Perl module JSON. You can install this either from CPAN (e.g. using the cpan command line tool: cpan install JSON) or with your package manager.

  • You need the Python module fonttools. You can install this either from PyPI (using easy_install or pip: pip install fonttools) or with your package manager.

Once you have these things, run the following command from the root directory:

sh ./dockers/fonts/buildMetrics.sh

which should generate new metrics and place them into fontMetricsData.json. You're done!