Created attachment 854028 [details] emerge_info Hello, I'm running a software which uses "font.getbbox()". This function call fails with the following error: File "/usr/lib/python-exec/python3.10/gopro-dashboard.py", line 330, in <module> frame = draw_timer.time(lambda: overlay.draw(dt)) File "/home/blshkv/.local/lib/python3.10/site-packages/gopro_overlay-0.90.0-py3.10.egg/gopro_overlay/timing.py", line 20, in time File "/usr/lib/python-exec/python3.10/gopro-dashboard.py", line 330, in <lambda> frame = draw_timer.time(lambda: overlay.draw(dt)) File "/home/blshkv/.local/lib/python3.10/site-packages/gopro_overlay-0.90.0-py3.10.egg/gopro_overlay/layout.py", line 106, in draw File "/home/blshkv/.local/lib/python3.10/site-packages/gopro_overlay-0.90.0-py3.10.egg/gopro_overlay/widgets/widgets.py", line 236, in draw File "/home/blshkv/.local/lib/python3.10/site-packages/gopro_overlay-0.90.0-py3.10.egg/gopro_overlay/widgets/widgets.py", line 32, in draw File "/home/blshkv/.local/lib/python3.10/site-packages/gopro_overlay-0.90.0-py3.10.egg/gopro_overlay/widgets/widgets.py", line 150, in draw File "/home/blshkv/.local/lib/python3.10/site-packages/gopro_overlay-0.90.0-py3.10.egg/gopro_overlay/widgets/widgets.py", line 32, in draw File "/home/blshkv/.local/lib/python3.10/site-packages/gopro_overlay-0.90.0-py3.10.egg/gopro_overlay/widgets/text.py", line 37, in draw File "/usr/lib/python3.10/site-packages/PIL/ImageFont.py", line 421, in getbbox size, offset = self.font.getsize( KeyError: 'setting text direction, language or font features is not supported without libraqm' I installed libraqm ebuild, recompiled pillow it fixed the problem.
Created attachment 854030 [details] libraqm-0.10.0.ebuild
https://pillow.readthedocs.io/en/stable/_modules/PIL/ImageFont.html :param direction: Direction of the text. It can be 'rtl' (right to left), 'ltr' (left to right) or 'ttb' (top to bottom). Requires libraqm.
Created attachment 854032 [details] getbbox_direction_poc.py