Title: Missing kerning in PDFs with Type 42 font · Issue #20614 · matplotlib/matplotlib · GitHub
Open Graph Title: Missing kerning in PDFs with Type 42 font · Issue #20614 · matplotlib/matplotlib
X Title: Missing kerning in PDFs with Type 42 font · Issue #20614 · matplotlib/matplotlib
Description: 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 import matplotlib.pyplot as plt from matpl...
Open Graph Description: 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 im...
X Description: 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 repro...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/20614
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing kerning in PDFs with Type 42 font","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nText 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.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nfrom matplotlib import rcParams\r\n\r\nrcParams[\"pdf.fonttype\"] = 42\r\n\r\nplt.plot([0, 1], [0, 1], label=\"Hello AVATAVATAVATAVATAVATAVAT\")\r\nplt.legend()\r\n\r\nplt.savefig(\"kern42.pdf\")\r\n```\r\n\r\n**Actual outcome**\r\n\r\n[kern42.pdf](https://github.com/matplotlib/matplotlib/files/6792128/kern42.pdf)\r\n\r\n\r\n**Expected outcome**\r\n\r\n[kern42.pdf](https://github.com/matplotlib/matplotlib/files/6792123/kern42.pdf)\r\n\r\n\u003c!--A description of the expected outcome from the code snippet--\u003e\r\n\u003c!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--\u003e\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: Debian 11\r\n * Matplotlib version (`import matplotlib; print(matplotlib.__version__)`): 3.4.2\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): TkAgg (PS I assume)\r\n * Python version: 3.9.2\r\n * I've installed Matplotlib with pip in a virtualenv\r\n\r\n","author":{"url":"https://github.com/sauerburger","@type":"Person","name":"sauerburger"},"datePublished":"2021-07-09T14:48:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/20614/matplotlib/issues/20614"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f9e42665-1dcf-b15e-a48b-c22367ebd941 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E4A:3280E7:55F1B2:70E91A:6A53EC02 |
| html-safe-nonce | 9cd3061e82a83ac71af83081b845539670eeac2365d3c7e5216767b37b81268e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTRBOjMyODBFNzo1NUYxQjI6NzBFOTFBOjZBNTNFQzAyIiwidmlzaXRvcl9pZCI6IjcyOTMzMjE5MzQ2MzIzODE0NDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 334111483fe3009094dbef30d7d64ddf442c0b343fc243af199a25709f3b7952 |
| hovercard-subject-tag | issue:940832859 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/20614/issue_layout |
| twitter:image | https://opengraph.githubassets.com/164ef277d365d92deead6f427d9374d5ba611ab0040aa012df10e908bee5f2f7/matplotlib/matplotlib/issues/20614 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/164ef277d365d92deead6f427d9374d5ba611ab0040aa012df10e908bee5f2f7/matplotlib/matplotlib/issues/20614 |
| og:image:alt | 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 im... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sauerburger |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width