Title: [ENH]: Allow specifying a typeface instead of a font · Issue #29866 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: Allow specifying a typeface instead of a font · Issue #29866 · matplotlib/matplotlib
X Title: [ENH]: Allow specifying a typeface instead of a font · Issue #29866 · matplotlib/matplotlib
Description: Problem Matplotlib has font settings for each font family. This makes it unnecessarily cumbersome to adopt a consistent appearance when using different families. Proposed solution Instead of specifying a font for every family, it would b...
Open Graph Description: Problem Matplotlib has font settings for each font family. This makes it unnecessarily cumbersome to adopt a consistent appearance when using different families. Proposed solution Instead of specif...
X Description: Problem Matplotlib has font settings for each font family. This makes it unnecessarily cumbersome to adopt a consistent appearance when using different families. Proposed solution Instead of specif...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29866
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: Allow specifying a typeface instead of a font","articleBody":"### Problem\n\nMatplotlib has font settings for each font family. This makes it unnecessarily cumbersome to adopt a consistent appearance when using different families.\n\n### Proposed solution\n\nInstead of specifying a font for every family, it would be handy to simply configure matplotlib to use a certain [typeface](https://fonts.google.com/knowledge/glossary/typeface), e.g. through a rc key `font.typeface`. matplotlib could then try to find the font matching `font.typeface` and the family specified by `font.family`. \n\nFor example, setting `font.typeface = 'DejaVu'` and `font.family = 'sans'` would resolve to `DejaVu Sans`. This would arguably make it easier to switch font families and stay within a given typeface for a consistent appearance. If no match is found, one could always fall back to the fonts listed in `font.{family}`.","author":{"url":"https://github.com/thangleiter","@type":"Person","name":"thangleiter"},"datePublished":"2025-04-03T19:33:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/29866/matplotlib/issues/29866"}
| 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:1488f625-69df-e002-a571-0f6bafa1b1fb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8EEC:1FD343:3BB86D:4DF2DF:6A5291F3 |
| html-safe-nonce | 614935e5ae3b56f8ce773f1adadbeb99f76321f7dbd2835e00dbfccdd9569f53 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUVDOjFGRDM0MzozQkI4NkQ6NERGMkRGOjZBNTI5MUYzIiwidmlzaXRvcl9pZCI6IjI0NTQwNzA0OTcxMTUyNzk4NTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a697bafd2cfb3c8ba4416b7b1e8e53d228e667dd34aa8c098f0537de1349a60f |
| hovercard-subject-tag | issue:2970497471 |
| 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/29866/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b294f153e9357315cd11942a89cc56884bb96fa3475f56eb773c487ac8d352a3/matplotlib/matplotlib/issues/29866 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b294f153e9357315cd11942a89cc56884bb96fa3475f56eb773c487ac8d352a3/matplotlib/matplotlib/issues/29866 |
| og:image:alt | Problem Matplotlib has font settings for each font family. This makes it unnecessarily cumbersome to adopt a consistent appearance when using different families. Proposed solution Instead of specif... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | thangleiter |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width