Open
Description
Bug summary
In the reference figure https://github.com/matplotlib/matplotlib/blob/main/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_00.pdf
the dot above the s is differently positioned. Not clear why as the expressions are \dot s
and \dot{s}
respectively. This doesn't happen to all fonts (maybe only this?).
It also happens in the svg image, although not as clear. Looking at the source, the x-position difference between the accent and character is 54.4 for the left and 57.5 for the right.
Code for reproduction
import matplotlib.pyplot
plt.text(0.5, 0.5, r'$\dot s + \dot{s}$')
plt.savefig('sdot.pdf')
plt.savefig('sdot.svg')
Actual outcome
Different rendering
Expected outcome
Identical rendering
Additional information
No response
Operating system
No response
Matplotlib Version
3.6.0.dev2642+g25292618a9.d20220612
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
git checkout