draw hebrew text to an image using Image module (python)
Question: Hi I am trying to use Image module in order to make bitmaps with hebrew
lettering in it. when printing from the shell (idle) I managed to print
hebrew, but when trying to draw text to a bitmap it draws some ascii
lettering.

this is the code:

    
    
    import Image
    
    import ImageDraw
    
    a = "אריאל" #or any other hebrew string
    
    im=Image.new('RGB',(200,200),(100,100,100)) #type file,size,Background color
    
    d=ImageDraw.Draw(im)
    
    d.text((0,0),a) #should draw the string
    
    im.show()
    

any help will be very appreciated.


Answer: Try `a = u"אריאל"`.

Failing that, try [PyCairo](http://cairographics.org/documentation/pycairo/).
It has advanced typography handling that may work better.

