Skip to content

Consequences of "naïvely" changing fonts #3585

Answered by edemaine
rosulek asked this question in Q&A
Discussion options

You must be logged in to vote

The main issue with different fonts, other than checking that all the Unicode symbols line up (there are often some discrepancies around some symbols), is in the metrics. See src/fontMetricsData.js and the associated build code in src/metrics. If these are incorrect for your font, then you'll find vertical alignments to be off. Try \frac and \begin{matrix} and so on and the layout will probably look bad.

The font building code is in src/fonts in this repository (it moved from katex-fonts). You shouldn't need to touch that if you already have a font.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rosulek
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants