Differences between revisions 2 and 3
Revision 2 as of 2008-07-08 11:27:43
Size: 256
Editor: localhost
Comment: converted to 1.6 markup
Revision 3 as of 2011-02-24 04:54:59
Size: 470
Editor: DenisS
Comment: need to add path as well
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:

It may also be needed to add current path in the load_path() function in ImageFont.py (otherwise it searches in sys.path directories only).
 '''for dir in sys.path+['.']''' instead of '''for dir in sys.path'''

If you've been getting errors like this:

File "PIL\ImageFont.pyc", line ---, in load_path IOError: cannot find font file

The fix is to simply copy the files helvetica-10.pil, helvB08.pil, helvetica-10.png and helvB08.png into the "dist" directory.

It may also be needed to add current path in the load_path() function in ImageFont.py (otherwise it searches in sys.path directories only).

  • for dir in sys.path+['.'] instead of for dir in sys.path

PILAndFontfiles (last edited 2011-02-24 04:54:59 by DenisS)