Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.
/ katex-fonts Public archive

Fonts used by KaTeX and scripts to generate fonts

License

Notifications You must be signed in to change notification settings

KaTeX/katex-fonts

Folders and files

NameName
Last commit message
Last commit date
Dec 6, 2019
Jul 11, 2020
Jul 12, 2020
Sep 4, 2018
Sep 4, 2018
Jan 27, 2018
Jul 8, 2020
Jul 8, 2020
Feb 4, 2018
Jul 12, 2020
Apr 8, 2018
Feb 20, 2019

Repository files navigation

How to generate KaTeX fonts and metrics

Originally based on MathJax font generation

Fonts

The buildFonts.sh script should do everything automatically, as long as Docker is installed.

If you want to try out a change to the katex-fonts repository, create a local clone (or download and unpack the ZIP file) and specify the path to this directory as an argument to buildFonts.sh. You can also specify a local or remote tarball, e.g. a GitHub download of your own personal feature branch.

The script buildFonts.sh automatically creates Docker images from the supplied Dockerfile. It uses the hash of the file to tag the image, so a change to the file will result in the creation of a new image. If you want to see all created images, run docker images katex/fonts. To remove all generated images, you can run docker rmi $(docker images --format '{{.Repository}}:{{.Tag}}' katex/fonts).

Metrics

The script buildMetrics.sh generates metrics (dimensions of each character) for the generated fonts. See detailed requirements for running this script.

If there is a problem, file a bug report.