[Image-SIG] missing fonts

VAN DER HEIJDEN Maarten mvanderheijden@fininfo.fr
Mon, 28 Apr 2003 13:17:34 +0200


Hello,


I tried to write text with ImageDraw.  But it seems that the following file
is missing:
"BDF/courR14.pil".

Somebody knows how to use fonts in PIL? For exemple fonts already available
under windows.

C:\python22\Samples>c:\python22\python.exe painter.py test2.bmp
Traceback (most recent call last):
  File "painter.py", line 71, in ?
    draw.text( (100,100), "Hallo" )
  File "C:\python22\PIL\ImageDraw.py", line 155, in text
    font = self.getfont()
  File "C:\python22\PIL\ImageDraw.py", line 61, in getfont
    self.font = ImageFont.load_path("BDF/courR14.pil")
  File "c:\python22\PIL\ImageFont.py", line 136, in load_path
    raise IOError, "cannot find font file"
IOError: cannot find font file

Thanks in advance, Maarten



This message and any attachments (the "message") is intended
solely for the addressees and is confidential. If you receive this 
message in error, please delete it and immediately notify the 
sender. Any use not in accord with its purpose, any dissemination 
or disclosure, either whole or partial, is prohibited except formal 
approval. Neither FININFO (nor any of its subsidiaries or affiliates) 
shall be liable for the message if modified, altered, falsified, edited 
or diffused without authorization.