Title: Cairo: Switch back to character codes for mathtext by QuLogic · Pull Request #32101 · matplotlib/matplotlib · GitHub
Open Graph Title: Cairo: Switch back to character codes for mathtext by QuLogic · Pull Request #32101 · matplotlib/matplotlib
X Title: Cairo: Switch back to character codes for mathtext by QuLogic · Pull Request #32101 · matplotlib/matplotlib
Description: PR summary Since f630b48, the Cairo backend was switched to use glyph indices for mathtext, just as the Agg backend. Unfortunately, neither Pycairo nor cairocffi expose anything other than the toy font face API. This means the Cairo backend can only access fonts by family name and not explicit path. Apparently, the version of DejaVu Sans that we ship may differ from the system copy WRT glyph indices, so we need to switch back to character codes, which are standardized and won't cause the wrong glyph to be rendered accidentally. I can't really add a test, as in order to break, this requires a system-installed copy of DejaVu Sans of the right version that it has different glyph indices. Fixes #32084 AI Disclosure None PR checklist "closes #0000" is in the body of the PR description to link the related issue new and changed code is tested [n/a] Plotting related features are demonstrated in an example [n/a] New Features and API Changes are noted with a directive and release note [n/a] Documentation complies with general and docstring guidelines
Open Graph Description: PR summary Since f630b48, the Cairo backend was switched to use glyph indices for mathtext, just as the Agg backend. Unfortunately, neither Pycairo nor cairocffi expose anything other than the toy ...
X Description: PR summary Since f630b48, the Cairo backend was switched to use glyph indices for mathtext, just as the Agg backend. Unfortunately, neither Pycairo nor cairocffi expose anything other than the toy ...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/32101
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9493ea41-19bd-0d41-bedf-226eaa96652d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C9D4:76F6E:5D3154:86E9D5:6A63757E |
| html-safe-nonce | ef80bff432c654580928aff0873efdc49031320b9bf25656f41b7065afc36219 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUQ0Ojc2RjZFOjVEMzE1NDo4NkU5RDU6NkE2Mzc1N0UiLCJ2aXNpdG9yX2lkIjoiMzk4MzU4ODkwMzMzMzYyMzE2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3c925c609ceec208abe5497f62407efdbea6063246da09920f3d224165792938 |
| hovercard-subject-tag | pull_request:4112217375 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/matplotlib/matplotlib/pull/32101/files |
| twitter:image | https://avatars.githubusercontent.com/u/302469?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/302469?s=400&v=4 |
| og:image:alt | PR summary Since f630b48, the Cairo backend was switched to use glyph indices for mathtext, just as the Agg backend. Unfortunately, neither Pycairo nor cairocffi expose anything other than the toy ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 15e78334bb345f3864e70c5a376ed0383374123629b9e3022398d9431f6cd8bf |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 51da2d8d0a841a1393b806a6559fa9ad757e1666 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width