Move to scoped packages for fonts, and use woff2 format #1168
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 movemathjax-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
anddynamicPrefix
values in these files aren't actually used, as they are overridden by the fonts, which are subclasses of theFontData
objects and provide their own value for these.This PR also corrects the tsconfig files to point to
mathjax-newcm
rather thanmathjax-modern
, which were missed in the PR that swapped the default font.