Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Bug]: mathtext not always rendering combining accents in the same way #23257

Copy link
Copy link
Open
@oscargus

Description

@oscargus
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.