Title: [Bug]: IBM unix system services - Fonts can'be read in - no labelling is possible · Issue #32514 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: IBM unix system services - Fonts can'be read in - no labelling is possible · Issue #32514 · matplotlib/matplotlib
X Title: [Bug]: IBM unix system services - Fonts can'be read in - no labelling is possible · Issue #32514 · matplotlib/matplotlib
Description: Bug summary Fonts can'be read on IBM USS (unix) so no labeling possible a raw graph can be created and saved to file. Python: 3.12.13 (heads/pyz_dev-3.12:fe57f277d86, May 24 2026, 08:17:10) [Clang 14.0.0 (build 588d20f)] Matplotlib: 3.8....
Open Graph Description: Bug summary Fonts can'be read on IBM USS (unix) so no labeling possible a raw graph can be created and saved to file. Python: 3.12.13 (heads/pyz_dev-3.12:fe57f277d86, May 24 2026, 08:17:10) [Clang ...
X Description: Bug summary Fonts can'be read on IBM USS (unix) so no labeling possible a raw graph can be created and saved to file. Python: 3.12.13 (heads/pyz_dev-3.12:fe57f277d86, May 24 2026, 08:17:10) [Cl...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/32514
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: IBM unix system services - Fonts can'be read in - no labelling is possible","articleBody":"### Bug summary\n\nFonts can'be read on IBM USS (unix) so no labeling possible a raw graph can be created and saved to file.\n\nPython: 3.12.13 (heads/pyz_dev-3.12:fe57f277d86, May 24 2026, 08:17:10) [Clang 14.0.0 (build 588d20f)]\nMatplotlib: 3.8.4\nMatplotlib module: /usr/local/pip/matplotlib/__init__.py\nFT2Font module: /usr/local/pip/matplotlib/ft2font.cpython-312.so\nFreeType: 2.6.1\nMatplotlib data: /usr/local/pip/matplotlib/mpl-data\n\n\n\nfont content look ok:\nchtag -p \"/usr/local/pip/matplotlib/mpl-data/fonts/ttf/DejaVuSans.ttf\"\nfile \"/usr/local/pip/matplotlib/mpl-data/fonts/ttf/DejaVuSans.ttf\"\nod -An -tx1 -N16 \"/usr/local/pip/matplotlib/mpl-data/fonts/ttf/DejaVuSans.ttf\"\n- untagged T=off /usr/local/pip/matplotlib/mpl-data/fonts/ttf/DejaVuSans.ttf\nfile: magic file \"/etc/magic\": EDC5129I No such file or directory.\n 00 01 00 00 00 14 01 00 00 04 00 40 46 46 54 4D\n\nS@ZOS31 /u/s/tlh_analyse_try > ls -l \"/usr/local/pip/matplotlib/mpl-data/fonts/ttf/DejaVuSans.ttf\"\n-rwxr-xr-x 1 ROOT SUDOGRP 756072 Feb 9 2026 /usr/local/pip/matplotlib/mpl-data/fonts/ttf/DejaVuSans.ttf\n\n\n\n### Code for reproduction\n\n```Python\npython3 - \u003c\u003c'PY'\nimport glob\nfrom matplotlib.ft2font import FT2Font\n\nfont_dir = \"/usr/local/pip/matplotlib/mpl-data/fonts/ttf\"\nfor path in glob.glob(font_dir + \"/*.ttf\"):\n try:\n FT2Font(path)\n print(\"OK: \", path)\n except Exception as exc:\n print(\"FAIL: \", path, exc)\nPY\n\n\n-------------------- smoke test for a plot\nimport os\n\nimport matplotlib\n\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\nfrom matplotlib import font_manager\n\n\noutput_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), \"matplotlib_uss_test.png\")\nfont_path = font_manager.findfont(\"DejaVu Sans\")\n\nprint(f\"Matplotlib backend: {matplotlib.get_backend()}\")\nprint(f\"Selected font: {font_path}\")\nprint(f\"Font exists: {os.path.isfile(font_path)}\")\n\nplt.figure(figsize=(6, 4))\nplt.plot([0, 1, 2, 3], [0, 1, 4, 9], marker=\"o\")\nplt.title(\"Matplotlib USS smoke test\")\nplt.xlabel(\"X\")\nplt.ylabel(\"Y\")\nplt.grid(True)\nplt.savefig(output_path, dpi=100)\nplt.close()\n\nprint(f\"Plot saved: {output_path}\")\nprint(f\"File size: {os.path.getsize(output_path)} bytes\")\n```\n\n### Actual outcome\n\n /usr/local/pip/matplotlib/mpl-data/fonts/ttf/cmtt10.ttf In FT2Font: Can not load face (unknown file format; error code 0x2)\n\nMatplotlib backend: agg\nSelected font: /usr/local/pip/matplotlib/mpl-data/fonts/ttf/DejaVuSans.ttf\nFont exists: True\nTraceback (most recent call last):\n File \"/u/sri/tlh_analyse_try/test_matplotlib_uss.py\", line 23, in \u003cmodule>\n File \"/usr/local/pip/matplotlib/pyplot.py\", line 1134, in savefig\n res = fig.savefig(*args, **kwargs) # type: ignore[func-returns-value]\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/pip/matplotlib/figure.py\", line 3390, in savefig\n self.canvas.print_figure(fname, **kwargs)\n File \"/usr/local/pip/matplotlib/backend_bases.py\", line 2193, in print_figure\n result = print_method(\n ^^^^^^^^^^^^^\n File \"/usr/local/pip/matplotlib/backend_bases.py\", line 2043, in \u003clambda>\n print_method = functools.wraps(meth)(lambda *args, **kwargs: meth(\n ^^^^^\n File \"/usr/local/pip/matplotlib/backends/backend_agg.py\", line 497, in print_png\n self._print_pil(filename_or_obj, \"png\", pil_kwargs, metadata)\n File \"/usr/local/pip/matplotlib/backends/backend_agg.py\", line 445, in _print_pil\n FigureCanvasAgg.draw(self)\n File \"/usr/local/pip/matplotlib/backends/backend_agg.py\", line 388, in draw\n self.figure.draw(self.renderer)\n File \"/usr/local/pip/matplotlib/artist.py\", line 95, in draw_wrapper\n result = draw(artist, renderer, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/pip/matplotlib/artist.py\", line 72, in draw_wrapper\n return draw(artist, renderer)\n ^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/pip/matplotlib/figure.py\", line 3154, in draw\n mimage._draw_list_compositing_images(\n File \"/usr/local/pip/matplotlib/image.py\", line 132, in _draw_list_compositing_images\n a.draw(renderer)\n File \"/usr/local/pip/matplotlib/artist.py\", line 72, in draw_wrapper\n return draw(artist, renderer)\n ^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/pip/matplotlib/axes/_base.py\", line 3034, in draw\n self._update_title_position(renderer)\n File \"/usr/local/pip/matplotlib/axes/_base.py\", line 2978, in _update_title_position\n ax.yaxis.get_tightbbox(renderer) # update offsetText\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/pip/matplotlib/axis.py\", line 1336, in get_tightbbox\n self._update_label_position(renderer)\n File \"/usr/local/pip/matplotlib/axis.py\", line 2609, in _update_label_position\n bboxes, bboxes2 = self._get_tick_boxes_siblings(renderer=renderer)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/pip/matplotlib/axis.py\", line 2161, in _get_tick_boxes_siblings\n tlb, tlb2 = axis._get_ticklabel_bboxes(ticks_to_draw, renderer)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/pip/matplotlib/axis.py\", line 1315, in _get_ticklabel_bboxes\n return ([tick.label1.get_window_extent(renderer)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/pip/matplotlib/text.py\", line 956, in get_window_extent\n bbox, info, descent = self._get_layout(self._renderer)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/pip/matplotlib/text.py\", line 373, in _get_layout\n _, lp_h, lp_d = _get_text_metrics_with_cache(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/pip/matplotlib/text.py\", line 69, in _get_text_metrics_with_cache\n return _get_text_metrics_with_cache_impl(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/pip/matplotlib/text.py\", line 77, in _get_text_metrics_with_cache_impl\n return renderer_ref().get_text_width_height_descent(text, fontprop, ismath)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/pip/matplotlib/backends/backend_agg.py\", line 220, in get_text_width_height_descent\n font = self._prepare_font(prop)\n ^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/pip/matplotlib/backends/backend_agg.py\", line 254, in _prepare_font\n font = get_font(_fontManager._find_fonts_by_props(font_prop))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/pip/matplotlib/font_manager.py\", line 1554, in get_font\n return _get_font(\n ^^^^^^^^^^\n File \"/usr/local/pip/matplotlib/font_manager.py\", line 1496, in _get_font\n return ft2font.FT2Font(\n ^^^^^^^^^^^^^^^^\nRuntimeError: In FT2Font: Can not load face (unknown file format; error code 0x2)\n\n\n### Expected outcome\n\nshould label the plot\n\n### Additional information\n\nI created a smoke-test after it did not work in a larger environment that works in ubuntu, but not under USS (z/OS)\n\n### Operating system\n\nIBM USS that is z/OS\n\n### Matplotlib Version\n\n 3.8.4\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n3.12\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/sri-ppi","@type":"Person","name":"sri-ppi"},"datePublished":"2026-10-21T10:26:21Z","url":"https://github.com/matplotlib/matplotlib/issues/32514"}
| 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:72ff7f44-4036-fd32-be18-bc8bd0d2d6ae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EAF6:130DD7:E77CBC:1364F19:6B064EE8 |
| html-safe-nonce | 91d6329f75fcd87f4bb2ae429f3f3edcdb610da2188594ad973c34a48a98f181 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUY2OjEzMERENzpFNzdDQkM6MTM2NEYxOTo2QjA2NEVFOCIsInZpc2l0b3JfaWQiOiIyMDAzNDE4OTQwNDcwMzQ5NTQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5f5d44422b4c72aec4ec2b876c0ec21f40949d479ef6b7207f327945dbd846b3 |
| hovercard-subject-tag | issue:5958748434 |
| 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/32514/issue_layout |
| twitter:image | https://opengraph.githubassets.com/167bc069829f78e36e2e72adcb6d382cab440db064130f02c914168e61f42cc4/matplotlib/matplotlib/issues/32514 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/167bc069829f78e36e2e72adcb6d382cab440db064130f02c914168e61f42cc4/matplotlib/matplotlib/issues/32514 |
| og:image:alt | Bug summary Fonts can'be read on IBM USS (unix) so no labeling possible a raw graph can be created and saved to file. Python: 3.12.13 (heads/pyz_dev-3.12:fe57f277d86, May 24 2026, 08:17:10) [Clang ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sri-ppi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e |
| 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 | f1f9a08f7c769a37f1dfc18ad43d463c222a7eea |
| 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