Title: Version 2.0.0_1 breaks OpenType font character spacing on PDF save · Issue #8050 · matplotlib/matplotlib · GitHub
Open Graph Title: Version 2.0.0_1 breaks OpenType font character spacing on PDF save · Issue #8050 · matplotlib/matplotlib
X Title: Version 2.0.0_1 breaks OpenType font character spacing on PDF save · Issue #8050 · matplotlib/matplotlib
Description: Bug report Bug summary I know that Matplotlib does not officially support OpenType fonts, but I have successfully been using them for axis labels in version 1.5.3 and earlier. I just updated Matplotlib via Macports and the character spac...
Open Graph Description: Bug report Bug summary I know that Matplotlib does not officially support OpenType fonts, but I have successfully been using them for axis labels in version 1.5.3 and earlier. I just updated Matplo...
X Description: Bug report Bug summary I know that Matplotlib does not officially support OpenType fonts, but I have successfully been using them for axis labels in version 1.5.3 and earlier. I just updated Matplo...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8050
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Version 2.0.0_1 breaks OpenType font character spacing on PDF save","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nI know that Matplotlib does not officially support OpenType fonts, but I have successfully been using them for axis labels in version 1.5.3 and earlier. I just updated Matplotlib via Macports and the character spacing and alignment broke, especially with larger font sizes. For example, X axis titles that are centered begin at the same position, but have extra wide spacing. This is found with all OpenType fonts that I have tried.\r\n\r\n**Code for reproduction**\r\n\r\n- This requires the free font Canter (not ideal for graphing, but it is available for testing), but can be reproduced with other fonts. \r\n- I have only included my setting of the fonts and saving the PDF, as this can be reproduced with any plot I've made.\r\n\r\n```python\r\nimport matplotlib as mpl\r\nimport matplotlib.pyplot as plt\r\nf = {'family':'Canter;, 'weight':'light', 'size':20}\r\nmpl.rc('font', **f)\r\n\r\nplt.savefig('test.pdf', transparent=True)\r\n```\r\n\r\n**Actual outcome**\r\n\r\n[170208-correlation-version 2.pdf](https://github.com/matplotlib/matplotlib/files/762224/170208-correlation-version.2.pdf)\r\n\r\n**Expected outcome**\r\n\r\n[170208-correlation-version 1.5.pdf](https://github.com/matplotlib/matplotlib/files/762222/170208-correlation-version.1.5.pdf)\r\n- This worked in v 1.5.3 and does not work in 2.0.0\r\n\r\n**Matplotlib version**\r\n\r\n- Python 2.7, Matplotlib versions 1.5.3 and 2.0.0, installed via macports\r\n","author":{"url":"https://github.com/andermannlab","@type":"Person","name":"andermannlab"},"datePublished":"2017-02-08T23:16:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/8050/matplotlib/issues/8050"}
| 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:e28b976c-f11e-b349-db85-40339ebf4a0a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85E2:29BECE:130C63:18E66E:6A516304 |
| html-safe-nonce | 68ec5ba2b2354ab9964a6a338218ec66e3b12d5c8467185ca854bc02255c02fc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUUyOjI5QkVDRToxMzBDNjM6MThFNjZFOjZBNTE2MzA0IiwidmlzaXRvcl9pZCI6Ijc4OTQ5NTAyMzMyMTc1MjQ0ODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c1d03fa678ed1d8a0f660e6ddb65fbd7d9051c7acaaddea7870bc01e310d6d44 |
| hovercard-subject-tag | issue:206355665 |
| 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/8050/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c14b09658422109caac3af104b4c5b448039461302ef0bd9f94e195a56ff7a7d/matplotlib/matplotlib/issues/8050 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c14b09658422109caac3af104b4c5b448039461302ef0bd9f94e195a56ff7a7d/matplotlib/matplotlib/issues/8050 |
| og:image:alt | Bug report Bug summary I know that Matplotlib does not officially support OpenType fonts, but I have successfully been using them for axis labels in version 1.5.3 and earlier. I just updated Matplo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andermannlab |
| 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 | 2eeb434949a926fad21064b4d395a54759f7a0b2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width