Skip to content

Clarify fonttype switch in backend_pdf.#31456

Merged
QuLogic merged 1 commit intomatplotlib:text-overhaulfrom
anntzer:pdfft
Apr 7, 2026
Merged

Clarify fonttype switch in backend_pdf.#31456
QuLogic merged 1 commit intomatplotlib:text-overhaulfrom
anntzer:pdfft

Conversation

@anntzer
Copy link
Copy Markdown
Contributor

@anntzer anntzer commented Apr 5, 2026

Make it clearer that switches are only over 3 possible fonttypes (1, 3, 42). In draw_text, the logic is easier to follow if one directly switches over rcParams['pdf.use14corefonts']; this requires putting the url handling at the end, which doesn't matter.

PR summary

AI Disclosure

PR checklist

Make it clearer that switches are only over 3 possible fonttypes (1, 3,
42).  In draw_text, the logic is easier to follow if one directly
switches over rcParams['pdf.use14corefonts']; this requires putting the
url handling at the end, which doesn't matter.
@QuLogic QuLogic added this to the v3.11.0 milestone Apr 6, 2026
@QuLogic QuLogic closed this Apr 7, 2026
@QuLogic QuLogic reopened this Apr 7, 2026
@QuLogic QuLogic merged commit 49bb098 into matplotlib:text-overhaul Apr 7, 2026
43 of 58 checks passed
@anntzer anntzer deleted the pdfft branch April 7, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants