Title: Solve the issue that some fonts are not handled correctly by cy18 · Pull Request #8607 · matplotlib/matplotlib · GitHub
Open Graph Title: Solve the issue that some fonts are not handled correctly by cy18 · Pull Request #8607 · matplotlib/matplotlib
X Title: Solve the issue that some fonts are not handled correctly by cy18 · Pull Request #8607 · matplotlib/matplotlib
Description: PR Summary This pull request fixes the problems I found when I try to use "Noto Serif CJK" and "Source Han" font families. In some fonts the font information are not given by Platform ID 1, but by Platform ID 3. The weight "thin" and "demilight" are used by some fonts, which is not handled correctely. When judging weight, there's a problem that "demibold" may be judged as "bold", "ultralight" may be judged as "light". This can be fixed by testing weight names in the order of names' length. PR Checklist Has Pytest style unit tests Code is PEP 8 compliant New features are documented, with examples if plot related Documentation is sphinx and numpydoc compliant Added an entry to doc/users/whats_new.rst if major new feature Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way
Open Graph Description: PR Summary This pull request fixes the problems I found when I try to use "Noto Serif CJK" and "Source Han" font families. In some fonts the font information are not given by...
X Description: PR Summary This pull request fixes the problems I found when I try to use "Noto Serif CJK" and "Source Han" font families. In some fonts the font information ...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/8607
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2fa929e2-1a42-6142-be6f-4f952a812c9c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A9FE:23D81D:60E0EB:7F43B6:6A530060 |
| html-safe-nonce | ab916963f002d90d1175d74d07f228868aef2c45aecfe9cd6e73a65f9f6f80b3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUZFOjIzRDgxRDo2MEUwRUI6N0Y0M0I2OjZBNTMwMDYwIiwidmlzaXRvcl9pZCI6IjE3OTI2MTYyODQ4MDQwMjIzNjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 318b4bfcf5ff8477f2b56c75ac53b3f40477922bd07140a63e765c652074dd38 |
| hovercard-subject-tag | pull_request:120059673 |
| 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/8607/files |
| twitter:image | https://avatars.githubusercontent.com/u/13564252?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/13564252?s=400&v=4 |
| og:image:alt | PR Summary This pull request fixes the problems I found when I try to use "Noto Serif CJK" and "Source Han" font families. In some fonts the font information are not given by... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width