Skip to content
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

Square root symbol broken on demos (Chrome 32 on OS X 10.9) #744

Closed
Blaisorblade opened this issue Feb 19, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@Blaisorblade
Copy link

commented Feb 19, 2014

Not only is the square root symbol not aligned with the horizontal line over the content, but the horizontal line is less thick — something you notice if the two happen to be almost aligned.

This is visible in the MathML demos. You can also go to the scaling math demo, type \sqrt{\sum_{i = 0}^n i} as sample math, and move the slider around.

This might relate to #295.

@pkra

This comment has been minimized.

Copy link
Member

commented Feb 19, 2014

Thanks for reporting this. For the record, I can confirm this on the same setup (also on Chrome 33). It's less prominent on Chrome 32/33 on linux.

@dpvc

This comment has been minimized.

Copy link
Member

commented Feb 19, 2014

The placement of the horizontal line has always been a source of difficulty, and the results you get change depending on the font size, the font used (STIX versus TeX), the browser, and the OS. Chrome has always been particularly troublesome in this respect, and I can produce examples that have the line too high, just right, and too low all in the same formula. So there is no easy fix for this. The measurements MathJax has access to don't have the required precision to get this exact in all cases.

MathJax does include a value that can be used to adjust the line, and I think it can be changed to improve the situation, but not fix it entirely.

The horizontal line is made from minus signs in the font being used (so that its thickness will better match the rest of the display), and the quality of the result depends on the quality of the font rendering, antialiasing, and even the position on the page (how close the positioning is to the pixel grid of the screen makes a big difference in the result). Again, Chrome has some long-standing font issues that exacerbate the problem.

@dpvc dpvc added the Accepted label Feb 20, 2014

@dpvc dpvc added this to the Bugfix Version milestone Feb 20, 2014

dpvc pushed a commit to dpvc/MathJax that referenced this issue Feb 20, 2014

@dpvc dpvc added Merged and removed Ready for Review labels Feb 20, 2014

@dpvc

This comment has been minimized.

Copy link
Member

commented Feb 20, 2014

=> Merged.

@dpvc dpvc closed this Feb 20, 2014

@dpvc dpvc added v2.4 and removed Merged labels Jun 30, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.