I've tried lots of solution that posted on the net, they don't work.
>>> import _imaging
>>> _imaging.__file__
'C:\python26\lib\site-packages\PIL\_imaging.pyd'
>>>
So the system can find the _imaging but still can't use truetype font
from PIL import Image, ImageDraw, ImageFilter, ImageFont
im = Image.new('RGB', (300,300), 'white')
draw = ImageDraw.Draw(im)
font = ImageFont.truetype('arial.ttf', 14)
draw.text((100,100), 'test text', font = font)
Raises this error:
ImportError: The _imagingft C module is not installed
File "D:Python26Libsite-packagesPILImageFont.py", line 34, in __getattr__
raise ImportError("The _imagingft C module is not installed")
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…