Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Bug summary
Text in PDF files created with the rcParams["pdf.fonttype"] = 42 setting does not have any kerning. This can lead to text overflowing the legend box.
rcParams["pdf.fonttype"] = 42
Code for reproduction
import matplotlib.pyplot as plt from matplotlib import rcParams rcParams["pdf.fonttype"] = 42 plt.plot([0, 1], [0, 1], label="Hello AVATAVATAVATAVATAVATAVAT") plt.legend() plt.savefig("kern42.pdf")
Actual outcome kern42.pdf
Expected outcome kern42.pdf
Matplotlib version
import matplotlib; print(matplotlib.__version__)
print(matplotlib.get_backend())
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Bug report
Bug summary
Text in PDF files created with the
rcParams["pdf.fonttype"] = 42
setting does not have any kerning. This can lead to text overflowing the legend box.Code for reproduction
Actual outcome

kern42.pdf
Expected outcome

kern42.pdf
Matplotlib version
import matplotlib; print(matplotlib.__version__)
): 3.4.2print(matplotlib.get_backend())
): TkAgg (PS I assume)The text was updated successfully, but these errors were encountered: