Request to Reintroduce MatchWebFonts Option in MathJax v3/v4
Open
@dpvc is already working on this.
Since Dec 28, 2025.
Code Example
Feature Request
v4
- Dominant language
- JavaScript
- Stars
- 10.9k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe.
The MatchWebFonts configuration option was available in MathJax v2 to ensure that web fonts were correctly measured and used in the rendering pipeline once loaded. In MathJax v3 and v4, this option is no longer available, and there is currently no equivalent feature. This creates issues for users who need explicit control over font re-measurement to avoid layout shifts or mismatches when web fonts are loaded after initial typesetting.
Describe alternatives you've considered
- Manually setting scale factor (not always easy to synchronize with measurement)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.