Title: [Bug]: Font rendering bug for Devanagari text · Issue #23082 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Font rendering bug for Devanagari text · Issue #23082 · matplotlib/matplotlib
X Title: [Bug]: Font rendering bug for Devanagari text · Issue #23082 · matplotlib/matplotlib
Description: Bug summary When rendered as part of a graph's axis label or title, Devanagari text renders incorrectly: the "matras" get affixed to the wrong letters (see the attached image, and note the difference between the string literal in the cod...
Open Graph Description: Bug summary When rendered as part of a graph's axis label or title, Devanagari text renders incorrectly: the "matras" get affixed to the wrong letters (see the attached image, and note the differen...
X Description: Bug summary When rendered as part of a graph's axis label or title, Devanagari text renders incorrectly: the "matras" get affixed to the wrong letters (see the attached image, and not...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/23082
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Font rendering bug for Devanagari text","articleBody":"### Bug summary\n\nWhen rendered as part of a graph's axis label or title, Devanagari text renders incorrectly: the \"matras\" get affixed to the wrong letters (see the attached image, and note the difference between the string literal in the code and the rendered text in the title of the graph).\n\n### Code for reproduction\n\n```python\nfrom matplotlib import pyplot as plt\r\nimport matplotlib\r\nmatplotlib.rc('font', family='Devanagari Sangam MN')\r\nmatplotlib.rc('font', size=18)\r\n\r\nplt.title('किसान')\n```\n\n\n### Actual outcome\n\n\u003cimg width=\"498\" alt=\"image\" src=\"https://user-images.githubusercontent.com/5202416/169554644-38d22276-b9f2-4bf3-a923-cba0642968b0.png\"\u003e\r\n\n\n### Expected outcome\n\nThe rendered word should look the same as in the string literal in the code.\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nmacOS\n\n### Matplotlib Version\n\n3.4.1\n\n### Matplotlib Backend\n\nmodule://ipykernel.pylab.backend_inline\n\n### Python version\n\nPython 3.9.12\n\n### Jupyter version\n\n6.3.0\n\n### Installation\n\npip","author":{"url":"https://github.com/kach","@type":"Person","name":"kach"},"datePublished":"2022-05-20T14:55:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/23082/matplotlib/issues/23082"}
| 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:3358bd66-5608-bd32-584d-baa4519d9277 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2D0:D0E8C:1E1289:288E9A:6A5174B2 |
| html-safe-nonce | 63fab61e57622d2989ce2194cd51fb14913187b612d4089be27adbb5b10a6183 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkQwOkQwRThDOjFFMTI4OToyODhFOUE6NkE1MTc0QjIiLCJ2aXNpdG9yX2lkIjoiMzkzNTI0OTczMzYxMDczMDY3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 61744bd4bd9b00e56e7861f90bcbf862386dd818160dfb04bb783aadd7d08534 |
| hovercard-subject-tag | issue:1243260756 |
| 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/23082/issue_layout |
| twitter:image | https://opengraph.githubassets.com/140139dcfc1243d566634dd22095237f1cff23e97a0c4cad76864302358d55be/matplotlib/matplotlib/issues/23082 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/140139dcfc1243d566634dd22095237f1cff23e97a0c4cad76864302358d55be/matplotlib/matplotlib/issues/23082 |
| og:image:alt | Bug summary When rendered as part of a graph's axis label or title, Devanagari text renders incorrectly: the "matras" get affixed to the wrong letters (see the attached image, and note the differen... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kach |
| 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 | b19955a9dd40fd99462443f7911b522d7216776a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width