Title: [Bug]: Warning: Font Family not found · Issue #20850 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Warning: Font Family not found · Issue #20850 · matplotlib/matplotlib
X Title: [Bug]: Warning: Font Family not found · Issue #20850 · matplotlib/matplotlib
Description: Bug summary Usign Latex fonts as recommended here throws a Warning: findfont: Font family ['serif'] not found. Falling back to DejaVu Sans. findfont: Generic family 'serif' not found because none of the following families were found: Cod...
Open Graph Description: Bug summary Usign Latex fonts as recommended here throws a Warning: findfont: Font family ['serif'] not found. Falling back to DejaVu Sans. findfont: Generic family 'serif' not found because none o...
X Description: Bug summary Usign Latex fonts as recommended here throws a Warning: findfont: Font family ['serif'] not found. Falling back to DejaVu Sans. findfont: Generic family 'serif' not foun...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/20850
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Warning: Font Family not found","articleBody":"### Bug summary\n\nUsign Latex fonts as recommended here throws a Warning:\r\n\r\n```\r\nfindfont: Font family ['serif'] not found. Falling back to DejaVu Sans.\r\nfindfont: Generic family 'serif' not found because none of the following families were found: \r\n```\n\n### Code for reproduction\n\n```python\nimport matplotlib.pyplot as plt\r\n\r\nplt.rcParams.update({\r\n \"font.family\": \"serif\",\r\n # Use LaTeX default serif font.\r\n \"font.serif\": [],\r\n # Use specific cursive fonts.\r\n \"font.cursive\": [\"Comic Neue\", \"Comic Sans MS\"],\r\n})\r\n\r\nplt.figure()\r\nplt.plot([1,2,3,4])\r\nplt.savefig('test.png')\r\nplt.savefig('test.pgf')\n```\n\n\n### Actual outcome\n\nThe Bug is also visible in your Docs.\r\nhttps://matplotlib.org/stable/gallery/userdemo/pgf_fonts.html\r\n\r\n\n\n### Expected outcome\n\nNo Warning should get thrown everytime\n\n### Operating system\n\nUbuntu\n\n### Matplotlib Version\n\n3.4.2\n\n### Matplotlib Backend\n\nTkAgg\n\n### Python version\n\n3.9.5\n\n### Jupyter version\n\n_No response_\n\n### Other libraries\n\n_No response_\n\n### Installation\n\npip\n\n### Conda channel\n\n_No response_","author":{"url":"https://github.com/FranzForstmayr","@type":"Person","name":"FranzForstmayr"},"datePublished":"2021-08-17T12:47:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/20850/matplotlib/issues/20850"}
| 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:4ee95413-3a5f-b1b3-598e-2f0fb76a15d7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CEEA:1A176D:19372F6:217601A:6A52C154 |
| html-safe-nonce | 1b93f151a13cec07dce994c54f60f0472261802449c10266ea5109b97a4f4788 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUVBOjFBMTc2RDoxOTM3MkY2OjIxNzYwMUE6NkE1MkMxNTQiLCJ2aXNpdG9yX2lkIjoiMjkzMzM1ODI1MDAwMTg3NTI4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 809d607580b1fa444eda874e500912237b04b440394aa12748c4c5be9ef68891 |
| hovercard-subject-tag | issue:972652756 |
| 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/20850/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e4d0c8ec6613c91c94e7b61814ef22a7d647898062878bce2534250138a9d8a4/matplotlib/matplotlib/issues/20850 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e4d0c8ec6613c91c94e7b61814ef22a7d647898062878bce2534250138a9d8a4/matplotlib/matplotlib/issues/20850 |
| og:image:alt | Bug summary Usign Latex fonts as recommended here throws a Warning: findfont: Font family ['serif'] not found. Falling back to DejaVu Sans. findfont: Generic family 'serif' not found because none o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FranzForstmayr |
| 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