Open lauramurgatroyd opened 1 week ago
When I tried to run on my windows machine I couldn't run the Colour Processing notebook.
In the notebook text is added to an image, and to do this a font is specified. font = ImageFont.truetype('DejaVuSerif.ttf', 50)
font = ImageFont.truetype('DejaVuSerif.ttf', 50)
The font doesn't exist on my windows machine so this fails with error: ImageFont.truetype cannot open resource
ImageFont.truetype cannot open resource
We need to replace the font with something that is standard on all OS.
To get the notebook working on my windows machine I used:
font = ImageFont.truetype('arial.ttf', 50)
Need to test if this works on linux / find out if there is a standard font to use
Can print all fonts on a system using: fc-list
No arial on my linux machine....
Reopening as font not found on our cloud system for training. We decided we need to upload the font file on the CIL-Demos repo
When I tried to run on my windows machine I couldn't run the Colour Processing notebook.
In the notebook text is added to an image, and to do this a font is specified.
font = ImageFont.truetype('DejaVuSerif.ttf', 50)
The font doesn't exist on my windows machine so this fails with error:
ImageFont.truetype cannot open resource
We need to replace the font with something that is standard on all OS.
To get the notebook working on my windows machine I used:
font = ImageFont.truetype('arial.ttf', 50)
Need to test if this works on linux / find out if there is a standard font to use