Hello Image-SIG,<br>I am a newbie to PIL, I have following code<br><br> def __setFont (self, filename):<br> pilfont = ImageFont.load(filename)<br> return pilfont<br> <br> def drawImage (self):<br> cg = CaptchaString(4)<br>
myString = cg.getString() #Some other object to get string from<br> myFont = self.__setFont('E:\\pilfonts\\timB12.pil')<br> <br> img = Image.new('RGB', (220,90), '#FFFFFF')<br>
<br> drawText = ImageDraw.Draw(img)<br> drawText.text((6, 0), myCaptchaString, font=myFont, fill=(255, 100, 25))<br> <br> img.save('myFile.png', 'PNG')<br><br>I don't know how to set font size so that it appear larger<br>
<br>Devji Chhanga<br>