Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arial Support #1702

Closed
fsonmezay opened this issue Sep 6, 2018 · 3 comments
Closed

Arial Support #1702

fsonmezay opened this issue Sep 6, 2018 · 3 comments

Comments

@fsonmezay
Copy link

Is ther e a plan to add Arial Font support for Katex -?

@ronkok
Copy link
Collaborator

ronkok commented Sep 6, 2018

@fsonmezay I do not expect that KaTeX will support Arial font.

One of the reasons that KaTeX is fast is that it does not have to query the browser for dimensions of font glyphs and then wait for the browser to reply. KaTeX has detailed metrics for the glyphs in the KaTeX font, so it can work with those metrics. In order to use another font, one would have to first extract the metrics for each glyph in the font and make that data available to KaTeX.

That might happen some day for one of the mathematical fonts, but I don't think it is likely to happen any time soon for Arial.

@edemaine
Copy link
Member

edemaine commented Sep 6, 2018

@fsonmezay If you're looking for a sans-serif font, you can use \mathsf{example} or \textsf{example}, or start a formula with \sf. This uses the sans-serif font in the Computer Modern typeface.

@fsonmezay
Copy link
Author

@ronkok , @edemaine Thank you both for your time and detailed explanations.

@edemaine we already use \sf for the formulas, but in some cases we thought we can use Arial font.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants