PIL Fonts

clive sinclair <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
I am running Python 2.6 and have just installed PIL 1.1.7 running on Win 
2000.

When I try to get a font object eg by
font = ImageFont.truetype("C:\WINNT\Fonts\arial.ttf", 15)
I get an exception
   File "C:\Python26\lib\site-packages\PIL\ImageFont.py", line 134, in 
__init__
     self.font = core.getfont(file, size, index, encoding)
IOError: cannot open resource.

Looking into Class FreeTypeFont I see that _imagingft service is 
required. This file is present in C:\Python26\Lib\site-packages\PIL.
Should this file be installed during the Python2.6 setup? What should I 
do to fix this problem? I had basically the same problem with PIL 1.1.6.

C Sinclair


_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.