mathjax / mathjax/MathJax

Request to Reintroduce MatchWebFonts Option in MathJax v3/v4

Open
#3,427 2 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.