[CommonHTML] Poor over script position above italic letters
Created by: samdooley
Issue Summary
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
- Load the following HTML example page.
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=MML_CHTML">
</script>
<math xmlns="http://www.w3.org/1998/Math/MathML" mathsize="36pt">
<mover>
<mrow>
<mi>X</mi>
<mo>⁣</mo>
<mi>J</mi>
</mrow>
<mo>⏜</mo>
</mover>
<mo>=</mo>
<mover>
<mrow>
<mtext mathvariant="italic">X</mtext>
<mo>⁣</mo>
<mtext mathvariant="italic">J</mtext>
</mrow>
<mo>⏜</mo>
</mover>
</math>
- Observe the horizontal position of the over script character in relation to the italic base letters.
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.
Technical details
- MathJax Version: 2.7.0 release
- Client OS: Windows
- Browser: Chrome