Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[CommonHTML] Poor over script position above italic letters #1735
Over script characters that are positioned above italic characters appear too far to the right, as if the italic correction is not handled properly.
Steps to Reproduce
This is a bug because the extent of the over script character should match the extent of the base letters, after accounting for the italic slant of the characters. The over script extends too far to the right, especially for the case on the left that uses mi elements.
I believe the problem is this line, which bubbles the accent skew up from lower nodes to higher nodes. The skew value is only supposed to be used if base is a single character, but this propagates the skew value for all cases. I think
would do the trick.
Thanks for the patch. I was able to test it with a local 2.7.0 and it is better, but I believe the line above needs the same treatment. So I think:
does the trick, both for arc(XJ) and arc(XY).