FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Clarify fonttype switch in backend_pdf. by anntzer · Pull Request #31456 · matplotlib/matplotlib · GitHub

Repository navigation

Clarify fonttype switch in backend_pdf. - #31456

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

QuLogic merged 1 commit into
matplotlib:text-overhaulfrom
anntzer:pdfft

Conversation

anntzer commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

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

Comment thread lib/matplotlib/backends/backend_pdf.py Outdated
Comment thread lib/matplotlib/backends/backend_pdf.py Outdated
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 added this to the v3.11.0 milestone Apr 6, 2026
QuLogic closed this Apr 7, 2026
QuLogic reopened this Apr 7, 2026
QuLogic merged commit 49bb098 into matplotlib:text-overhaul Apr 7, 2026
43 of 58 checks passed
anntzer deleted the pdfft branch April 7, 2026 06:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL