Title: [Doc]: FontManager docs should mention the singleton is named `fontManager` · Issue #22586 · matplotlib/matplotlib · GitHub
Open Graph Title: [Doc]: FontManager docs should mention the singleton is named `fontManager` · Issue #22586 · matplotlib/matplotlib
X Title: [Doc]: FontManager docs should mention the singleton is named `fontManager` · Issue #22586 · matplotlib/matplotlib
Description: Documentation Link https://matplotlib.org/devdocs/api/font_manager_api.html Problem The reference documentation for the FontManager class says that there is a singleton: This module provides a single FontManager instance that can be shar...
Open Graph Description: Documentation Link https://matplotlib.org/devdocs/api/font_manager_api.html Problem The reference documentation for the FontManager class says that there is a singleton: This module provides a sing...
X Description: Documentation Link https://matplotlib.org/devdocs/api/font_manager_api.html Problem The reference documentation for the FontManager class says that there is a singleton: This module provides a sing...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22586
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Doc]: FontManager docs should mention the singleton is named `fontManager`","articleBody":"### Documentation Link\n\nhttps://matplotlib.org/devdocs/api/font_manager_api.html\n\n### Problem\n\nThe reference documentation for the `FontManager` class says that there is a singleton:\r\n\r\n\u003e This module provides a single [FontManager](https://matplotlib.org/3.5.1/api/font_manager_api.html#matplotlib.font_manager.FontManager) instance that can be shared across backends and platforms.\r\n\r\nHowever, it doesn't mention that this singleton is named `fontManager`.\n\n### Suggested improvement\n\n* The docstring should clarify that the singleton is named `fontManager`, rather than implying that the `FontManager` class is a singleton:\r\n\r\n ```restructuredtext\r\n This module provides a single `FontManager` instance, `fontManager`, that is shared across backends and platforms.\r\n ```\r\n\r\n* The `fontManager` instance should be documented as a global variable:\r\n\r\n ```restructuredtext\r\n .. data:: fontManager\r\n\r\n The singleton instance of :class:`FontManager`\r\n ```","author":{"url":"https://github.com/twm","@type":"Person","name":"twm"},"datePublished":"2022-03-02T19:22:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/22586/matplotlib/issues/22586"}
| 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:c34161a9-eef8-7f8e-65b2-7db5e978caf2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A72E:A8D95:DC21BC:1265335:6A51B58F |
| html-safe-nonce | 92edb011cf0e8395c583c438e69363f0de1de03f39c7a0087e8bb28e2780faf8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzJFOkE4RDk1OkRDMjFCQzoxMjY1MzM1OjZBNTFCNThGIiwidmlzaXRvcl9pZCI6IjI1NzQ2NjY4NDM3MTAxNDE4MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8a69c4add2afe43839408aac81e86c956a16ffb2466a7392b15c0288217028fd |
| hovercard-subject-tag | issue:1157594936 |
| 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/22586/issue_layout |
| twitter:image | https://opengraph.githubassets.com/455ca61b0b848b396e3da26ca9634af5291c47f45811b172a821c171b6b1a3cd/matplotlib/matplotlib/issues/22586 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/455ca61b0b848b396e3da26ca9634af5291c47f45811b172a821c171b6b1a3cd/matplotlib/matplotlib/issues/22586 |
| og:image:alt | Documentation Link https://matplotlib.org/devdocs/api/font_manager_api.html Problem The reference documentation for the FontManager class says that there is a singleton: This module provides a sing... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | twm |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width