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

options for tweaking font fallback behavior #299

Closed
pkra opened this issue Feb 24, 2017 · 2 comments
Closed

options for tweaking font fallback behavior #299

pkra opened this issue Feb 24, 2017 · 2 comments

Comments

@pkra
Copy link
Contributor

pkra commented Feb 24, 2017

From mathjax/MathJax-dev#22 (comment)

MathJax-node can't measure the width of elements, like MathJax can in the browser. [...] So MathJax-node has to guess. It does this by using the "monospace" font, and making an assumption about the width of that font. For standard ASCII characters, this assumption is reasonable, but for non-western characters, this doesn't work so well.

You can adjust the width that MathJax-node uses by changing the 8.5 in line 318 of lib/mj-single.js to be something larger; a value of 13 worked for me. If you change the monospace to serif two lines later, then you might need to go to 15 or 16.

I'm wondering: Should we expose this in the configuration options?

@pkra pkra added the Question label Feb 24, 2017
@dpvc
Copy link
Member

dpvc commented Feb 27, 2017

Fine by me, if you want to take time to do it and maintain it.

@pkra
Copy link
Contributor Author

pkra commented Dec 15, 2017

This was fixed by #358.

@pkra pkra added this to the 1.3.0 milestone Dec 15, 2017
@pkra pkra closed this as completed Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants