DEV Community

Discussion on: How Haptik generates images on the fly with Python

 
vinayjn profile image
Vinay Jain

Thanks Morris,

Looks like you don't have fonts installed on your system. I missed this step in the post. The way Pillow works is that it builds on top of the fonts installed in the system. To fix the errors you are getting please install the fonts by following:

Ubuntu: How to install fonts on Ubuntu

For macOS and Windows just open the fonts files which you have downloaded.

Thread Thread
 
waracci profile image
Morris Warachi

Thanks for the response Vinay Jain. I will try installing the Roboto font and see if it works. Again, thanks for the help.