[Tutor] PIL, text rendering and Mac

Thomas Pletl thomas.pletl@system-integration.de
Mon, 23 Apr 2001 18:24:06 +0200


Has anyone used the Python imaging library (PIL) on a Mac before?

What I am trying to do is to setup a script that takes text input (from a
Web page for example) and then renders the text to a bitmap. As far as I
understand it, PIL uses fonts in the BDF format with which I am not
familiar. Is there a way to get these fonts for Mac? Also I can't seem to
get the pilfont.py script to run - the window's bar simply tells me
"terminated" after starting the script.

Alternatively is there a way to get the gd-library (+freetype) running with
Python (I know gd is not available for the Mac, but I already have a little
of experience with gd on Linux and that would make migrating easier for me).

Thanks!

Thomas