I am trying to change the font size using the Python ImageDraw image library.
You can do something like this :
fontPath = "/usr/share/fonts/dejavu-lgc/DejaVuLGCSansCondensed-Bold.ttf" sans16 = ImageFont.truetype ( fontPath, 16 ) im = Image.new ( "RGB", (200,50), "#ddd" ) draw = ImageDraw.Draw ( im ) draw.text ( (10,10), "Run awayyyy!", font=sans16, fill="red" )
The problem is that I do not want to specify the font. I want to use the default font and just change the font size. It seems to me that this should be simple, but I can not find the documentation on how to do this.
source share