-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Asana Math superscript overlaps parenthesis #732
Comments
Technically, this is not a bug with superscripts. If you look closely, the superscript has some backspacing (originally from But the Asana large parentheses don't come in large enough sizes for this equation, and so they are the ones made from multiple characters. This makes them far less bowed than the ones from the TeX fonts. Further, they don't have the extra space around them that the TeX fonts do to center the vertical parts (if you look at the full equation, you will see that the parentheses on the right-hand side are practically touching). So the scripted 2 does not need the spacing adjustment in this case; but since it is in the MathML (not in MathJax rendering), this result is "correct". This is one of the difficulties when trying to use different fonts that have different characteristics. You may recall that I mentioned in the past that some of TeX's spacing rules are actually carried out in the fonts. This is one of those situations, where the parentheses include extra space that isn't part of the ink of the glyph itself. Not all fonts do that. There are several other similar situations. When fonts don't have these, they will act differently. The only solution I can see is either to remove the extra space from the TeX fonts, or modify the font data for other fonts to add the space. Neither is going to be easy, and will involve lots of hand work. If you remove the space from the TeX fonts, then the output jax would have to be modified to accommodate the changes in order to maintain TeX-quality output. My impression is that this would be complicated (but I can't say for sure without making a fuller catalog of the changes needed for the fonts). We already do some fontdata adjustments to other fonts (like for the integral symbol to make the spacing consistent with the TeX integral). |
Ah! Thanks for the explanation. I just checked and STIX, Neo Euler, and Latin Modern look fine, the Gyre fonts are a bit tight but ok. So it's really just Asana. Maybe simply a won't fix / font "bug". |
The "expected behavior" was supposed to be the stand-in for "won't fix", but perhaps there need's to be another label for something that actually is "wrong" but that we aren't going to do anything about. |
Ah, right. I guess my impression has been that "expected behavior" is mostly used for non-bugs (e.g, but of course it covers both. Personally, I would prefer to separate the two to catch won't-fixes and document them but that can be done on the docs issue tracker. |
I recently stumbled upon a bad superscript rendering with the Asana fonts. The following example should reproduce this.
The text was updated successfully, but these errors were encountered: