tags:

views:

77

answers:

2

What would be the best Python library to use when producing text-based images requiring things such as leading, kerning, outlines, drop-shadows, etc?

I've worked with PIL before for resizing images, but the methods for working with text seem rather limited. Is there a better alternative?

+1  A: 

What you seem to want to do is exactly what LaTeX was designed for. With plasTeX, you can convert LaTeX markup to an image. Here's an example of what you can do with this (from the plasTeX documentation) http://plastex.sourceforge.net/plastex/images/img-0001.png.

Notice the shadows and text effects.

Chinmay Kanchi
A: 

Cairo is very capable, and there are Python bindings to Cairo. Though, when I used it, I had to look into C documentation too.

jetxee