将希伯来文字绘制成图像(python,PIL)

时间:2010-02-02 13:31:15

标签: python text

  

可能重复:
  Drawing Hebrew text to and image using Image module (python)

这是代码:

import Image
import ImageDraw
import ImageFont
import _imaging

a=u'1אריאל' #u'..' converts to unicode
font = ImageFont.truetype('c:/test/Miriam.ttf',24) #standard hebrew font, this line throws the error
im=Image.new('RGB',(200,200),(100,100,100))
d=ImageDraw.Draw(im)
d.text((0,0),a)
im.show()

这是错误:ImportError:未安装_imagingft C模块

我该怎么办?

感谢

0 个答案:

没有答案
相关问题