Mailing List Archive

PIL font questions
I'm trying to work with drawing fonts in the Python Imaging Library.
Questions:

1. I've never heard of BDF and PCF font descriptiors, and I certainly
don't have any on my Mac system. No fonts seem to be included with
PIL, either. So where can I get some fonts to use?

2. There doesn't seem to be any way within ImageFont and ImageDraw to
set the size of a font. To scale a font, do I have to just draw to a
temporary Image, then copy (transparent?) to my destination image with
scaling?

3. I presume the answer also applies to drawing rotated text, but
(here's hoping!) is there an easier way?

Thanks,
-- Joe

--
,------------------------------------------------------------------.
| Joseph J. Strout Biocomputing -- The Salk Institute |
| joe@strout.net http://www.strout.net |
`------------------------------------------------------------------'
Check out the Mac Web Directory! http://www.strout.net/macweb.cgi
PIL font questions [ In reply to ]
At 3:37 PM -0700 04/08/99, David Ascher wrote:

>There is a bunch of PIL fonts as part of the "FULL" Snow distribution. Feel
>free to steal.

Thanks! Er, but where do I get that? I just downloaded a fresh copy of
Snow 1.26, and I can't seem to find these there.

FYI, I'm working on a PIL backend to PIDDLE. I think you already have a
PIL backend for Snow, but if my piddlePIL works out nicely, and assuming
you're planning to also support PIDDLE, then you may be able to use that
rather than maintaining your own PIL-drawing code. Just a thought.

Cheers,
-- Joe
,------------------------------------------------------------------.
| Joseph J. Strout Biocomputing -- The Salk Institute |
| joe@strout.net http://www.strout.net |
`------------------------------------------------------------------'