-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integral sign and centering #13
Comments
Sorry, I can't reproduce the misalignment with LuaLaTeX and amsmath |
I tested the website on Firefox on Windows and Android, and the integral is correctly displayed, so this seems to be specific to Chromium-based browsers. |
That is indeed puzzling that Integral signs and Sums are incorrectly rendered. Not sure this is related, but at least it is a difference. |
Okay, I think I have a good guess of what's going on. The probable cause is that the baseline in the font is not set to the expected position. Moving the glyph vertically should fix the problem. My guess is that in Lua/XeLaTeX or Firefox, the operator is automatically vertically centred, so the actual vertical position of the glyph does not matter. But in Chrome this is not done. This problem not only occurs with Lete, but also with XITS and Fira Math. I suspect it is the same problem, and the same fix should work. I'll do more tests, and upload a fixed version later. That aside, having looked more closely at https://www.preining.info/MathFonts/, I started to have more concerns:
I'm not an expert in how MathML works in browsers, but I would guess that using a better LaTeX-to-MathML converter should solve these. |
Hi @abccsss Concerning the code on the page - that was not a latex2ml converter, but hand written as far as I know. The page is developed by Frédéric Wang https://github.com/fred-wang/MathFonts who is working on mathml support in browsers, so all credit goes to him. I just add some fonts to the list, and test-deploy it to my server before sending PRs. |
Hi @abccsss But a short-term fix to the Lete fonts would be greatly appreciated since the update for the MathML spec and the Chromium update will take a long time I fear. Thanks for all your work! |
Issue fixed in version 0.45 which is on the way to CTAN. |
Thanks a lot @dflipo , confirmed!!! |
It seems that the axis of the integral sign is broken, see https://www.preining.info/MathFonts/ and select the Lete font in the drop down, screenshot attached.
The text was updated successfully, but these errors were encountered: