Re: PIL font encoding

2008-04-21 Thread Steve Holden
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

PIL font encoding

2008-04-21 Thread Laszlo Nagy
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):