[Image-SIG] ImageFont ttf and the letter 'f'

Martin Dunschen zabaione at uk2.net
Wed Nov 1 11:51:04 CET 2006


Hi

I am using ImageFont and ImagDraw (version 1.1.5) on WindowsXP to 
display large font text.

I noticed that the letter 'f' has a smudge top left from the character, 
the rendering is wrong there. I have not tried all fonts, but I can see 
it in TIMES.TTF and ARIAL.TTF.

Here is a bit of code that shows the problem:

import Image, ImageDraw, ImageFont
im = Image.new('RGB', (100, 100))
imd = ImageDraw.Draw(im)
imf = ImageFont.truetype('TIMES.TTF', 50)
imd.text((10, 10), 'f', font=imf)
im.save('letterf.png')
im.show()

Can this be fixed easily?

Thanks

Martin


More information about the Image-SIG mailing list