Hello,

This two liner:

import ImageFont
font = ImageFont.truetype('arial.ttf',14)


Gives me this error:

Traceback (most recent call last):
  File "T:\Python\Projects\PILTest\test.py", line 2, in ?
    font = ImageFont.truetype('arial.ttf',14)
  File "C:\Python24\Lib\site-packages\PIL\ImageFont.py", line 202, in 
truetype
    return FreeTypeFont(filename, size, index, encoding)
  File "C:\Python24\Lib\site-packages\PIL\ImageFont.py", line 121, in 
__init__
    self.font = _imagingft.getfont(file, size, index, encoding)
TypeError: function takes at most 3 arguments (4 given)

What am I doing wrong?


_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to