Title: Broken characters with FreeSerif and no hinting · Issue #18252 · matplotlib/matplotlib · GitHub
Open Graph Title: Broken characters with FreeSerif and no hinting · Issue #18252 · matplotlib/matplotlib
X Title: Broken characters with FreeSerif and no hinting · Issue #18252 · matplotlib/matplotlib
Description: The FreeSerif font produces strange output when hinting is disabled. This is not a default configuration (which is force_autohint), but is set when building tests. import matplotlib.pyplot as plt plt.rcParams['text.hinting'] = 'none' # '...
Open Graph Description: The FreeSerif font produces strange output when hinting is disabled. This is not a default configuration (which is force_autohint), but is set when building tests. import matplotlib.pyplot as plt p...
X Description: The FreeSerif font produces strange output when hinting is disabled. This is not a default configuration (which is force_autohint), but is set when building tests. import matplotlib.pyplot as plt p...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/18252
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Broken characters with FreeSerif and no hinting ","articleBody":"The FreeSerif font produces strange output when hinting is disabled. This is not a default configuration (which is `force_autohint`), but is set when building tests.\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\nplt.rcParams['text.hinting'] = 'none' # 'force_autohint'\r\n\r\nfig, ax = plt.subplots()\r\nkw = {'font': 'freeserif', 'fontsize': 14}\r\n# characters where Free Serif uses various scales and linear transforms\r\n# e.g. the right paren is a reflected left paren\r\nax.text(.05, .1, \"parens, FAX, u with two diacritics: ()℻ǘ\", **kw)\r\nax.text(.05, .2, \"double arrows LURD, single arrows LURD: ⇐⇑⇒⇓←↑→↓\", **kw)\r\nax.text(.05, .3, \"corner arrows, wreath product: ↴↵≀\", **kw)\r\nax.set_xticks([])\r\nax.set_yticks([])\r\n\r\nfig.savefig(f'hinting-{plt.rcParams[\"text.hinting\"]}.png')\r\nfig.savefig(f'hinting-{plt.rcParams[\"text.hinting\"]}.pdf')\r\nfig.savefig(f'hinting-{plt.rcParams[\"text.hinting\"]}.svg')\r\n```\r\n\r\n\r\n\r\n_Originally posted by @jkseppan in https://github.com/matplotlib/matplotlib/pull/18081#issuecomment-664402276_","author":{"url":"https://github.com/QuLogic","@type":"Person","name":"QuLogic"},"datePublished":"2020-08-14T06:19:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/18252/matplotlib/issues/18252"}
| 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:de30b0a8-9d5e-1c55-8d9d-eb7519e22bd9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D68A:15934D:A182:D2FF:6A52BA98 |
| html-safe-nonce | 922efc6b146b7e4189c4a074af78b83abcafb4d99127dd0070916c33ae77be0b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjhBOjE1OTM0RDpBMTgyOkQyRkY6NkE1MkJBOTgiLCJ2aXNpdG9yX2lkIjoiMzI2MzY3NzQxOTAzODEzMjcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d8fadf7aa552b7d5e90622e6bb9b07706d52f63e2e9a912123b42a07f22ee742 |
| hovercard-subject-tag | issue:678930434 |
| 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/18252/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0e808e5444d45a890dcb516208bd178bb0696a16ddb0947fec07dee28bc162df/matplotlib/matplotlib/issues/18252 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0e808e5444d45a890dcb516208bd178bb0696a16ddb0947fec07dee28bc162df/matplotlib/matplotlib/issues/18252 |
| og:image:alt | The FreeSerif font produces strange output when hinting is disabled. This is not a default configuration (which is force_autohint), but is set when building tests. import matplotlib.pyplot as plt p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | QuLogic |
| 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 | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width