MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

Can I use a custom font in version 3.2?

Open apple01150525 opened this issue 2 years ago • 6 comments

I saw in the official document that the current version 3.2 supports several fonts. Can custom fonts be supported currently? Or is there a way that I can replace the font? Because I want to show math formulas to kids, and wish the font cute.

Looking forward to your reply.

apple01150525 avatar Jul 31 '23 10:07 apple01150525

Moving this to the MathJax issue tracker, so all questions are in one place.

dpvc avatar Jul 31 '23 11:07 dpvc

No, MathJax 3.2 does not support multiple fonts. That has been added for v4.0, which is currently in beta release, and includes support for 11 fonts. None of them would likely be termed "cute". in order to use a font, MathJax needs extensive data about the font metrics, character bounding boxes, and so on, and this data needs to be made available in data files for MathJax. The tools for making these file will be made available after the v4.0 release, once they are cleaned up and documented. So after that, you would be able to make the data needed for your own font, but that will not be available for a while.

dpvc avatar Jul 31 '23 11:07 dpvc

Any update on how the tool is coming along to generate font data files? We'd love to get access to it!

kevcam4891 avatar Aug 26 '24 18:08 kevcam4891

Unfortunately, v4 is still in beta release. We are in the code cleanup phase (no new features), and updating the documentation. Once we get the v4 release officially out, work can begin on making the font tools ready for public use.

dpvc avatar Aug 28 '24 14:08 dpvc

@dpvc Hi! We are really needing a tool like this because we have a customer requiring us to render math in Verdana. We'd be willing to contribute to this project if there's anything we can do to assist financially to prioritize this feature. Let me know if you'd be interested in discussing offline. Thanks!

kevcam4891 avatar Feb 05 '25 19:02 kevcam4891

@kevcam4891, send me email at dpvc at mathjax dot org, and I will be glad to discuss the possibilities with you.

dpvc avatar Feb 07 '25 15:02 dpvc

A wider range of fonts is available in v4.0. The font tools are still not public, however. That is coming.

dpvc avatar Aug 15 '25 11:08 dpvc