Drawing Hebrew text to and image using Image module (python) -


This is an issue about which I have already asked and many have got the answer but the problem is going on. When I try to write in an image using the Image Module in Hebrew, then I take about some other (ASCI?) Lettering instead of Hebrew. If I convert to Unicode or ASCI, I get an error which does not support it. Here I get a reference to a code that I want in Chinese:

  import import import imports import import import imaged import imaging txt = '你好, 世界!' Font = ImageFont.truetype ('c: /test/simsun.ttc', 24) im = Image.new ("RGBA", (300,200), (0,0,0)) draw = ImageDraw.Draw (im) # DrawText ((0, 50), u '你, 世界!', Font = font) DrawText ((0, 50), Unicode (TCT, 'UTF-8'), font = font)  

But then I get an error: ImportError:

_imagingf C module is not installed.

The same goes when I try to use the standard Hebrew Hebrew font 'arial.ttf' (with the Hebrew string course). As you can see I have imported succsefuly_imaging, so the problem is not recommended by effbot.org.

It seems that the problem is with Imagefont.truetype (...).

Any help will be highly anticipated

Was made without Install FreeType Dev files and rebuild PIL again.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -