www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

README.md (766B)


      1 ### How to generate new metrics
      2 -------------------------------
      3 
      4 There are several requirements for generating the metrics used by KaTeX.
      5 
      6 - You need to have an installation of TeX which supports kpathsea. You can check
      7   this by running `tex --version`, and seeing if it has a line that looks like
      8   > kpathsea version 6.2.0
      9 
     10 - You need the JSON module for perl. You can install this either from CPAN
     11   (possibly using the `cpan` command line tool) or with your package manager.
     12 
     13 - You need the python module fonttools. You can install this either from PyPi
     14   (using `easy_install` or `pip`) or with your package manager.
     15 
     16 Once you have these things, run
     17 
     18     make metrics
     19 
     20 which should generate new metrics and place them into `fontMetricsData.json`.
     21 You're done!