[Image-SIG] Unable to draw compound character of a kannada lang over an image.

shilpa h shilpa.hireraddi at gmail.com
Tue Oct 5 12:16:10 CEST 2010

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")

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20101005/a076a466/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: font.png
Type: image/png
Size: 3637 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/image-sig/attachments/20101005/a076a466/attachment.png>

More information about the Image-SIG mailing list