我正在尝试使用 Image 模块来制作带有希伯来字母的位图。从外壳(空闲)打印时,我设法打印了希伯来语,但是当尝试将文本绘制到位图时,它会绘制一些 ascii 字母。
这是代码:
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()
任何帮助将不胜感激。