更新时间:2022-04-03 22:55:13
似乎主要的问题是必须首先扩展.我猜你是这么做的,因为MathJax在RTL上下文中渲染太大.
It seems like the main issue is that you have to scale in the first place. I'm guessing you did that because MathJax is rendering too large in RTL contexts.
MathJax似乎在检测周围字体的正确ex-height时遇到问题.这可能是由各种问题引起的,从字体高度不正确到CSS交互不良.通过快速测试,它不是字体.
It looks like MathJax is having issues detecting the correct ex-height of the surrounding font. That can be caused by various problems, from fonts not having a correct ex-height to bad CSS interactions; from a quick test it's not the fonts.
作为解决方法,您可以在MathJax配置中禁用字体匹配
As a workaround you can disable font matching in the MathJax configuration
MathJax.Hub.Config({
"HTML-CSS": {matchFontHeight: false},
SVG: {matchFontHeight: false},
CommonHTML: {matchFontHeight: false}
});
然后,您还应该禁用所应用的缩放比例.
You should then also disable the scaling you applied.