Skip to content

Clarify fonttype switch in backend_pdf.#31456

Open
anntzer wants to merge 1 commit intomatplotlib:text-overhaulfrom
anntzer:pdfft
Open

Clarify fonttype switch in backend_pdf.#31456
anntzer wants to merge 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.
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.

1 participant