LatinModernMathJax font causes calculator page to break due to giant line-height
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
People
(Reporter: emilio, Unassigned)
References
(Depends on 1 open bug)
Details
Attachments
(2 files)
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?
Reporter | ||
Comment 1•2 years ago
|
||
Reporter | ||
Comment 2•2 years ago
|
||
For reference it comes from /usr/share/fonts/mathjax2/HTML-CSS/Latin-Modern/woff/LatinModernMathJax_Main-Regular.woff
Comment 3•2 years ago
|
||
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).
Comment 4•2 years ago
|
||
(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...)
Comment 5•2 years ago
|
||
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...
Comment 6•2 years ago
|
||
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.
Comment 7•2 years ago
|
||
(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.
Reporter | ||
Comment 8•2 years ago
|
||
Yeah, removing mathjax2
and installed mathjax
(which is mathjax3) fixes this... That's kind of sad... Maybe we should ignore that known-broken font?
Description
•