Title: [Bug]: Crash on exotic fonts · Issue #32465 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Crash on exotic fonts · Issue #32465 · matplotlib/matplotlib
X Title: [Bug]: Crash on exotic fonts · Issue #32465 · matplotlib/matplotlib
Description: Bug summary When one of these 3 fonts is in the ~/.local/share/fonts/ directory, matplotlib crashes on start: CharcoalCY.dfont.ttf GenevaCY.dfont.ttf HelveticaCY.dfont.ttf badfonts.zip Code for reproduction #!/usr/bin/env python3 """ Can...
Open Graph Description: Bug summary When one of these 3 fonts is in the ~/.local/share/fonts/ directory, matplotlib crashes on start: CharcoalCY.dfont.ttf GenevaCY.dfont.ttf HelveticaCY.dfont.ttf badfonts.zip Code for rep...
X Description: Bug summary When one of these 3 fonts is in the ~/.local/share/fonts/ directory, matplotlib crashes on start: CharcoalCY.dfont.ttf GenevaCY.dfont.ttf HelveticaCY.dfont.ttf badfonts.zip Code for rep...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/32465
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Crash on exotic fonts","articleBody":"### Bug summary\n\nWhen one of these 3 fonts is in the ~/.local/share/fonts/ directory, matplotlib crashes on start:\nCharcoalCY.dfont.ttf\nGenevaCY.dfont.ttf\nHelveticaCY.dfont.ttf\n[badfonts.zip](https://github.com/user-attachments/files/33309699/badfonts.zip)\n\n### Code for reproduction\n\n```Python\n#!/usr/bin/env python3\n\"\"\"\nCanary script: tries to load matplotlib font manager.\nExits with code 0 on success, non-zero on crash/error.\n\"\"\"\nimport sys\nimport warnings\n\nwarnings.filterwarnings(\"error\") # turn warnings into errors\n\ntry:\n import matplotlib.font_manager as fm\n fm._load_fontmanager(try_read_cache=False)\n print(\"OK\")\n sys.exit(0)\nexcept Exception as e:\n print(f\"CRASH: {e}\", file=sys.stderr)\n sys.exit(1)\n```\n\n### Actual outcome\n\nSpeicherzugriffsfehler (Speicherabzug geschrieben) python3 test_matplotlib.py\n(German translation for memory access fault)\n\n\n### Expected outcome\n\nOK\n\n### Additional information\n\nAdditionally I would recommend not to automatically load all fonts on startup but only those that are actually needed to improve performance when a user has installed lots of fonts.\n\n### Operating system\n\nUbuntu 26.x\n\n### Matplotlib Version\n\n3.10.7+dfsg1\n\n### Matplotlib Backend\n\nqtagg\n\n### Python version\n\nPython 3.14.4\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nLinux package manager","author":{"url":"https://github.com/thesourcerer8","@type":"Person","name":"thesourcerer8"},"datePublished":"2026-10-11T19:00:09Z","url":"https://github.com/matplotlib/matplotlib/issues/32465"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:6796907d-f15d-b380-25e1-93cccc9ef69d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E322:3AD630:31478D:43E49C:6B067F90 |
| html-safe-nonce | b430857325189fa08ee461ff7b72a94454581ee92ef573766c601ae9a6c59679 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzIyOjNBRDYzMDozMTQ3OEQ6NDNFNDlDOjZCMDY3RjkwIiwidmlzaXRvcl9pZCI6IjQ2NTI2MjM0MzY1ODAyOTA0NDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a10fca8e5e4856f2add04b0522317b8014db6277fa85f50ebe2d6e24401b098f |
| hovercard-subject-tag | issue:5804158438 |
| 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/32465/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eb1b91853143553240ed9730000fe8f323a05ea9cf289247d16f5ffa3be985db/matplotlib/matplotlib/issues/32465 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eb1b91853143553240ed9730000fe8f323a05ea9cf289247d16f5ffa3be985db/matplotlib/matplotlib/issues/32465 |
| og:image:alt | Bug summary When one of these 3 fonts is in the ~/.local/share/fonts/ directory, matplotlib crashes on start: CharcoalCY.dfont.ttf GenevaCY.dfont.ttf HelveticaCY.dfont.ttf badfonts.zip Code for rep... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | thesourcerer8 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| 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 | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width