Laszlo Nagy wrote:
def getfnt(size):
return ImageFont.truetype(cartoon.ttf,size,encoding='unic')
Using the above function, I cannot draw special german characters. E.g.
u'L\xfctgendorf'
It will print Lutgendorf instead of Lütgendorf. Much more
interesting is that I can also do this:
def getfnt(size):
return
ImageFont.truetype(cartoon.ttf,size,encoding='put_somethin_here_it_has_no_effect
WHAT?? ')
Same results. Shouldn't the truetype constructor raise an exception if
the encoding is invalid and/or not available with the selected font?
BTW my cartoon.ttf font is able to print Lütgendorf. I have tested
it from GIMP. So I'm 100% sure that the problem is with PIL.
Thank you,
Laszlo
You will be more likely to find assistance for this specific issue via
the image-SIG mailing list, see
http://mail.python.org/mailman/listinfo/image-sig
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list