![]() Summary: The `\dots` and `\dots{c,o,b,i,m}` commands do more than just show characters, they add extra space and `\dots` also looks ahead to determine what kind of environment it is in (see [this math.sx post] (http://tex.stackexchange.com/questions/122491/difference-of-the-dots)). We can't support that yet, so remove them. Also, add comments to the extract_ttf script to show what caracters we are extracting metrics for. Test Plan: - Make sure tests work Reviewers: alpert Reviewed By: alpert Differential Revision: http://phabricator.khanacademy.org/D13151 |
||
---|---|---|
.. | ||
extract_tfms.py | ||
extract_ttfs.py | ||
mapping.pl | ||
parse_tfm.py | ||
README.md | ||
replace_line.py |
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 fontMetrics.js
. You're
done!