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

[HTML-CSS][FF][MacOS] supscripts can be too close to base #1869

Closed
pkra opened this issue Nov 20, 2017 · 6 comments
Closed

[HTML-CSS][FF][MacOS] supscripts can be too close to base #1869

pkra opened this issue Nov 20, 2017 · 6 comments

Comments

@pkra
Copy link
Contributor

pkra commented Nov 20, 2017

Reported at https://stackoverflow.com/questions/47344711/mathjax-exponent-too-close-from-term.

I could reproduce this on MacOS 10.12, FF 57.

It might be specific to STIX fonts (CommonHTML and SVG are fine).

@dpvc
Copy link
Member

dpvc commented Dec 11, 2017

As you suspected, this is due to the font metrics of the STIX fonts. The italic "j" extends to the left of its bounding box by .124em (which amounts to a pixel or two at usual sizes), while the TeX font's italic "j" only extends to the left by .012em (1/10 as much). So when the superscript "j" is placed net to the "v" in the STIX fonts, the bottom of the "j" extends to the left of its bounding box by a few pixels, and bumps the base "v". This is inherent in the metrics of the STIX fonts. I would be hesitant to change the metrics for fear for making other situations worse.

@dpvc dpvc added Accepted Issue has been reproduced by MathJax team and removed Investigate labels Dec 11, 2017
@dpvc
Copy link
Member

dpvc commented Dec 11, 2017

I've marked it "accepted" but I'm not sure what else to mark it as, since there doesn't seem to be another applicable label. Should we have a "font bug" label?

@pkra pkra added this to the A future font release milestone Dec 11, 2017
@pkra pkra added the Upstream label Dec 11, 2017
@pkra
Copy link
Contributor Author

pkra commented Dec 11, 2017

Should we have a "font bug" label?

Sounds good to me but upstream is perhaps enough?

I've added this issue to the "a future font release" milestone because when we switch to STIX2 (which is really a new font) we can check if this kind of problem is resolved.

@dpvc
Copy link
Member

dpvc commented Dec 11, 2017

"Upstream" is good, thanks.

Yes, checking the situation with STIX2 is a good idea.

@dpvc dpvc removed the Accepted Issue has been reproduced by MathJax team label Jan 18, 2018
@dpvc
Copy link
Member

dpvc commented Mar 30, 2018

It turns out that this is probably actually due to the same issue as #1923. So I'm remarking this as a duplicate of that.

@dpvc dpvc added Duplicate and removed Upstream labels Mar 30, 2018
@dpvc
Copy link
Member

dpvc commented Jul 11, 2018

Fixed by #1923.

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