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

Disappearing minus sign (scaling problem with SVG fonts). #2612

Open
grahamandrewsmith opened this issue Jan 13, 2021 · 7 comments
Open

Disappearing minus sign (scaling problem with SVG fonts). #2612

grahamandrewsmith opened this issue Jan 13, 2021 · 7 comments
Labels
Accepted Issue has been reproduced by MathJax team Browser Bug Investigate

Comments

@grahamandrewsmith
Copy link

Issue Summary

We are using MathJax as part of a platform for setting exams for our calculus students. Recently, the minus sign has started disappearing on certain browsers at certain zoom levels. This would appear to be a problem with the SVG fonts.

Steps to Reproduce:

This can be seen, for example, on the following page at 50% zoom on Chrome.

https://arquimedes.nce.ufrj.br/calculo1/prova/diagnostic.php

Observe that the \leq sign is also incorrectly displayed at 80% zoom.

Technical details:

Supporting information:

Below follow some examples.

Line C of Question 3 of the following file.

Problem_SVG_B_210113

Second, Third and Seventh Equations of the following file.

Problem_SVG_A_210113

Third equation of the following file.

Problem_SVG_C_210113

This was referenced Jan 13, 2021
@Acfboy
Copy link

Acfboy commented Jan 14, 2021

I also encountered this problem

@dpvc
Copy link
Member

dpvc commented Jan 14, 2021

If this is in Chrome (or another browser that uses Blink, e.g., Opera or recent Edge browsers), we have heard reports of recent version of Chrome not showing minus and plus properly when the math is scaled. This is apparently a Chrome bug, and turning off hardware acceleration seems to resolve the issue for those who have reported it.

https://www.technipages.com/google-chrome-enable-disable-hardware-acceleration-mode

If you are using SVG output, you could also consider changing to CHTML output, as that uses a different rendering process that might work better for you.

@dpvc dpvc added Accepted Issue has been reproduced by MathJax team Browser Bug Investigate labels Jan 14, 2021
@adamma1024
Copy link

By the way, two months ago, I find the same problem and read Chrome's Bugs report. I told to test engineer it's Chrome's bug, but he still thinks it's my fault, lol 🤣

@adamma1024
Copy link

And now, I revert SVG to Img to resolve this problem

@bsmarsh333
Copy link

It appears this my have been fixed in Chrome 88. https://bugs.chromium.org/p/chromium/issues/detail?id=1159852

Can anyone confirm that was experiencing the issue previously?

@oliveras
Copy link

oliveras commented Jan 26, 2021

@bsmarsh333 I just updated Chrome to 88 and found that the SVG rendered the negative sign correctly for me now (when they did not before). Of course, take this as a sample size of one.

@dpvc
Copy link
Member

dpvc commented Jan 27, 2021

@oliveras and @bsmarsh333, thanks for sharing the information you have found. That is very valuable, and I hope others are able to confirm your results as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team Browser Bug Investigate
Projects
None yet
Development

No branches or pull requests

6 participants