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

Move to scoped packages for fonts, and use woff2 format #1168

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Nov 19, 2024

This PR moves to using WOFF2 formatted fonts, and moves the font npm packages into the @mathjax scope. I've already published the font packages in that scope. A later step before beta.8 is release will be to move mathjax-full into the scoped package as well, which will require additional changes, both to the fonts and to MathJax source (mathjax-full will need to be replaced by @mathjax/src, for example). That will be done in a separate PR later.

The fontURL and dynamicPrefix values in these files aren't actually used, as they are overridden by the fonts, which are subclasses of the FontData objects and provide their own value for these.

This PR also corrects the tsconfig files to point to mathjax-newcm rather than mathjax-modern, which were missed in the PR that swapped the default font.

@dpvc dpvc requested a review from zorkow November 19, 2024 20:35
@dpvc dpvc added this to the v4.0 milestone Nov 19, 2024
@dpvc
Copy link
Member Author

dpvc commented Nov 20, 2024

I forgot to say that you need to use the lab-woff2 branch in the MathJax-dev repository to test this. Do a ppm install first to get the new versions of the fonts.

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