PIL set font trouble
Fredrik Lundh
effbot at telia.com
Sun Sep 3 11:53:26 EDT 2000
Zajcev Evgeny wrote:
> self.font = ImageFont.load_path("BDF/courR14.pil")
> File "/usr/local/lib/python1.6/site-packages/PIL/ImageFont.py", line 97, in load_path
> raise IOError, "cannot find font file"
> IOError: cannot find font file
>
> --so i dont find any courR14.pil file in my file system
if you don't have the fonts, PIL cannot load them.
you can generate font files from X window fonts (BDF
and/or PCF files), using the pilfont tool provided with
PIL.
precompiled PIL fonts are available from:
http://www.cs.su.oz.au/~piers/python/pilfonts.html
http://members.home.com/lenticular/
and also in the PIDDLE (and reportlab?) packages.
</F>
<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->
More information about the Python-list
mailing list