Size: 256
Comment:
|
← Revision 3 as of 2011-02-24 04:54:59 ⇥
Size: 470
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