Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Ensure text metric calculation always uses the text cache#29907
New issue
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
These locations outside of `Text` were calling`Renderer.get_text_width_height_descent` directly which meant that1. they were not cached, and 2. the `text_placeholders` fixture did notcatch their use.Fortunately, this only affected one test figure.
QuLogic commentedApr 12, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Unfortunately, I missed this in#29872 because I had only tested with changing the hinting settings originally, and not with FreeType 2.13.3+mpl20 style+hinting, and only the latter changed the height significantly enough to be noticed. |
65d2464
intomatplotlib:mainUh oh!
There was an error while loading.Please reload this page.
The azure failure is 3.10 timing out in a subprocess test. |
@meeseeksdev backport to v3.10.x |
…ses the text cache
…907-on-v3.10.xBackport PR#29907 on branch v3.10.x (Ensure text metric calculation always uses the text cache)
These locations outside of
Text
were callingRenderer.get_text_width_height_descent
directly which meant thattext_placeholders
fixture did not catch their use.Fortunately, this only affected one test figure.
PR summary
PR checklist