Title: bug in font_manager.FontManager.score_family() · Issue #4607 · matplotlib/matplotlib · GitHub
Open Graph Title: bug in font_manager.FontManager.score_family() · Issue #4607 · matplotlib/matplotlib
X Title: bug in font_manager.FontManager.score_family() · Issue #4607 · matplotlib/matplotlib
Description: If a font to be scored is found first in the font alias list, it currently results in a "perfect" score of 0. For example: font_manager.FontManager().score_family(['myfont','sans-serif'], 'bitstream vera sans') will return 0, and 'myfont...
Open Graph Description: If a font to be scored is found first in the font alias list, it currently results in a "perfect" score of 0. For example: font_manager.FontManager().score_family(['myfont','sans-serif'], 'bitstrea...
X Description: If a font to be scored is found first in the font alias list, it currently results in a "perfect" score of 0. For example: font_manager.FontManager().score_family(['myfont','s...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4607
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug in font_manager.FontManager.score_family()","articleBody":"If a font to be scored is found first in the font alias list, it currently results in a \"perfect\" score of 0.\nFor example:\n\n```\nfont_manager.FontManager().score_family(['myfont','sans-serif'], 'bitstream vera sans')\n```\n\nwill return 0, and 'myfont' will never be found if it happens to appear later in the list of known fonts.\n\nCommit 314a0cf already attempted to address this issue, but didn't solve it in the case I'm running into.\n","author":{"url":"https://github.com/chadawagner","@type":"Person","name":"chadawagner"},"datePublished":"2015-07-08T22:39:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/4607/matplotlib/issues/4607"}
| 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:54964f8c-c2cb-b6db-b098-debad3d5000a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 959E:38AA01:1FF337C:2E3803C:6A54FFAE |
| html-safe-nonce | 66c50cb75d1bfa0c2149775234ba0ba0ac3a3c3796c5f8846b14fdaf3d45b537 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTlFOjM4QUEwMToxRkYzMzdDOjJFMzgwM0M6NkE1NEZGQUUiLCJ2aXNpdG9yX2lkIjoiNTAwOTI3NjMxMzk0MjY4NzY2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 90784151434cc4f1b116a6c7104f7044fa70d359d7b73ba8f88ab3ebc6b9a7d8 |
| hovercard-subject-tag | issue:93906166 |
| 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/4607/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4523fb5ab019418895c03b53730535094b15f18b44c0b935223a52e3c0b2c797/matplotlib/matplotlib/issues/4607 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4523fb5ab019418895c03b53730535094b15f18b44c0b935223a52e3c0b2c797/matplotlib/matplotlib/issues/4607 |
| og:image:alt | If a font to be scored is found first in the font alias list, it currently results in a "perfect" score of 0. For example: font_manager.FontManager().score_family(['myfont','sans-serif'], 'bitstrea... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chadawagner |
| hostname | github.com |
| expected-hostname | github.com |
| None | eae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839 |
| 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 | 6a35ab858be185cd86d12b93a43bccf34e8d8536 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width