[Image-SIG] drawing antialised text

Björn Platzen bplatzen at sosnetz.de
Fri Jul 9 23:15:55 CEST 2004


Hello List,

I'm trying to draw some antialiased Text on an 8-bit PNG with
alphatransparency. But my text always looks horrible. It looks kind of
distorted.

As a workaround, I initialized a new RGB Image, pasted my PNG and wrote
my text. After that, I converted the new image to mode "P".  Everything
worked fine and my text looked ok.

But now, I need the produced image with a transparent background. Is
there any way to write the text directly into my PNG so that it is
nicely rendered and antialiased?
Another approach would be to make the background of the RGB image
transparent. But I don't have any idea how to get this working...


I'm workin with PIL 1.15a3 on a Linux-Machine. The server has only PIL
1.14, so solutions should work under 1.14 as well...

Thanks in advance,

Bjoern.




More information about the Image-SIG mailing list