I noticed that you said font=font2, but have not declared font2, it should be font=font. Besides that I messed around a bit with your code and can't get it to work, but I don't have fonts with the right glyphs, so I just get boxes. I assume that this font renders correctly elsewhere. If that is the case, there might be something lacking in ImageFont's truetype impementation.
On Wed, Oct 6, 2010 at 6:41 AM, shilpa h <shilpa.hirera...@gmail.com> wrote: > Yeah, i have tried for many other fonts also but getting the same result. > > On Wed, Oct 6, 2010 at 6:29 AM, Edward Cannon <cannon...@gmail.com> wrote: >> >> Have you tried another font? Do all fonts do this or just this one? >> >> >> >> On Oct 5, 2010, at 3:16 AM, shilpa h <shilpa.hirera...@gmail.com> wrote: >> >>> Hello all, >>> >>> I am unable to draw kannada compound characters ಕ್ಕಾ , ಪೈ, ವೋ etc >>> >>> over an image using ImageDraw module's draw method. Below is my code, >>> >>> #-*- coding:utf8 -*- >>> import sys, codecs, string >>> import Image >>> import ImageDraw >>> import ImageFont >>> >>> txt = 'ಕ್ಕಾ ' >>> font = ImageFont.truetype('Malige-n.ttf',20) >>> im = Image.new("RGBA",(800,600),(100,155,100)) >>> draw = ImageDraw.Draw(im) >>> draw.text( (0,100), unicode(txt, 'UTF-8'), font=font2) >>> del draw >>> im.save('font.png', "PNG") >>> im.show() >>> >>> >>> And attached output image file displays 'ಕ್ಕಾ' by splitting it, but what >>> i want is to display ಕ್ಕಾ as it is. >>> Please suggest me where i went wrong. >>> >>> >>> Thanks & Regards >>> Shilpa >>> >>> >>> >>> >>> <font.png> >>> _______________________________________________ >>> Image-SIG maillist - image-...@python.org >>> http://mail.python.org/mailman/listinfo/image-sig > > _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig