Skip to content

Add fontExtensions configuration option. (mathjax/MathJax#3410) #1337

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Aug 16, 2025

This PR adds a fontExtensions configuration that makes it easier to specify a font extension to load (e.g., mathjax-euler). It sets up the extraLoads package data to make sure the extension loads after the font itself. The current method of including the extension in the loader.load array doesn't work properly as it can be loaded before the font arrives. That can be handled by setting up dependencies and paths in the loader configuration, but it is harder than it should be, so this makes it easy.

Resolves issue mathjax/MathJax#3410.

The original section that was used to configure a font has been moved to a configFont() function, and a new configExtensions() function uses it to set up the font extensions.

@dpvc dpvc requested a review from zorkow August 16, 2025 19:10
@dpvc dpvc added this to the v4.0.1 milestone Aug 16, 2025
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

Successfully merging this pull request may close these issues.

1 participant