Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Pythonista 3 3.4 (340006) beta: ImageFont.truetype('Courier-Bold',24) gives a PIL error
-
Code
font = ImageFont.truetype('Courier-Bold',24)
Gives
font = ImageFont.truetype('Courier-Bold',24) File "/var/containers/Bundle/Application/FF9F9C4D-CB37-49D1-8111-7450226E1EA3/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/PIL/ImageFont.py", line 845, in truetype return freetype(font) File "/var/containers/Bundle/Application/FF9F9C4D-CB37-49D1-8111-7450226E1EA3/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/PIL/ImageFont.py", line 842, in freetype return FreeTypeFont(font, size, index, encoding, layout_engine) File "/var/containers/Bundle/Application/FF9F9C4D-CB37-49D1-8111-7450226E1EA3/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/PIL/ImageFont.py", line 194, in __init__ self.font = core.getfont( OSError: cannot open resource