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

Chrome中渲染的公式字体不对 #20

Open
LehaoLin opened this issue Nov 21, 2023 · 2 comments
Open

Chrome中渲染的公式字体不对 #20

LehaoLin opened this issue Nov 21, 2023 · 2 comments

Comments

@LehaoLin
Copy link

No description provided.

@LehaoLin
Copy link
Author

经测试,safari字体正确,chrome字体不太对
找到了相关问题
https://superuser.com/questions/1762425/math-fonts-not-rendering-in-chrome-macos
Chrome字体:
image
Safari字体:
image

@LehaoLin
Copy link
Author

LehaoLin commented Nov 21, 2023

发现增加
window.MathJax.Hub.Queue(["setRenderer", MathJax.Hub, "CommonHTML"]);

window.MathJax.Hub.Queue(["Rerender", window.MathJax.Hub]);
重新渲染就好了
已提交pull request #22

@LehaoLin LehaoLin changed the title 输入一瞬间字体会变 Chrome中渲染的公式字体不对 Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant