Closed Bug 1814017 Opened 2 years ago Closed 2 years ago

LatinModernMathJax font causes calculator page to break due to giant line-height

Categories

(Core :: Layout: Text and Fonts, defect)

Firefox 109
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: emilio, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(2 files)

Attached image image.png

On Linux with the LatinModernMathJax_Main-Regular font installed (from some latex package), this page: https://m-valentino.github.io/calculator.html

Shows the square root off, see screenshot.

Are we reading the wrong font table or is the font just bogus?

For reference it comes from /usr/share/fonts/mathjax2/HTML-CSS/Latin-Modern/woff/LatinModernMathJax_Main-Regular.woff

That's an old version (1.958) of the font, which is known to have this issue (see discussion in bug 1719953 and linked reports).

(Per https://bugzilla.mozilla.org/show_bug.cgi?id=1208776#c5, the upstream font was fixed many years ago, but I guess some packages just stagnate...)

The attached font does not have a MATH table:

ttx -t MATH LatinModernMathJax_Main-Regular.woff 
Dumping "LatinModernMathJax_Main-Regular.woff" to "LatinModernMathJax_Main-Regular.ttx"...
No 'MATH' table found.

so I assume this is a custom copy of (an old version of) the Latin Modern Math font that is adapted for use by MathJax? If so, I guess MathJax should update their font? Or maybe that's something that should be reported for the system packages installing that font...

This was one of the points raised in https://github.com/mathjax/MathJax-dev/issues/21. From the latest comment there, it's unclear whether the update actually happened yet; it looks like the issue may have been closed prematurely.

(In reply to Emilio Cobos Álvarez (:emilio) from comment #2)

For reference it comes from /usr/share/fonts/mathjax2/HTML-CSS/Latin-Modern/woff/LatinModernMathJax_Main-Regular.woff

Do you have the option of upgrading MathJax2 to MathJax3? From a quick look at the mathjax repos, it's unclear to me what that would mean for fonts, but it may be that a "fixed" font only comes with a 3.x version.

Yeah, removing mathjax2 and installed mathjax (which is mathjax3) fixes this... That's kind of sad... Maybe we should ignore that known-broken font?

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: