scribble-math/metrics
Martin von Gagern 86115b8fce Format font metrix data to have one row for each glyph
This will make reviewing modifications easier, since the affected glyphs
will be more readily visible in the diff.
The formatting tool was applied to the existing data, instead of
regenerating the data, so the semantic content should be unmodified.
2015-07-10 14:30:42 +02:00
..
extract_tfms.py Add accents 2014-09-13 21:30:35 -07:00
extract_ttfs.py Fix up small problems with #126 2015-02-18 16:28:05 -08:00
format_json.py Format font metrix data to have one row for each glyph 2015-07-10 14:30:42 +02:00
mapping.pl Update metrics using TeX metrics instead of TTF metrics 2014-09-03 20:12:00 -07:00
parse_tfm.py Add accents 2014-09-13 21:30:35 -07:00
README.md Save auto-generated font metrics data to separate JSON file 2015-07-10 14:30:41 +02:00

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 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!