mathjax / MathJax

Beautiful and accessible math in all browsers
http://www.mathjax.org/
Apache License 2.0
10.23k stars 1.16k forks source link

Text "decorations" (`\cancel`, `\underbrace`, etc.) are sized incorrectly for Unicode text #3056

Open benchristel opened 1 year ago

benchristel commented 1 year ago

Issue Summary

The "decorations" created by e.g. \cancel, \underbrace, and \overline are sized incorrectly when the command's argument contains unicode text.

Steps to Reproduce:

  1. Go to https://www.mathjax.org/#demo
  2. Enter $\underbrace{\text{你好}}$ in the box

Technical details:

Supporting information:

screenshot showing the problem
dpvc commented 1 year ago

I am not able to reproduce your results using Edge 113.0.1774.57 on Mac OS 12.6.5. Here is what I see:

Edge

Have you made any changes using the MathJax contextual menu that might be affecting the results?

benchristel commented 1 year ago

Yes, I had {"scale":"1.8"} in MathJax-Menu-Settings. Sorry for the confusion.

dpvc commented 1 year ago

Well, it should still work with that setting, so there may still be a problem with Edge, though I'm still not able to reproduce it. I will leave this open to check into in the future.