PIL - font kerning

Ivan Illarionov ivan.illarionov at gmail.com
Tue Dec 23 21:22:08 CET 2008


On 23 дек, 16:44, carsn <carsten.kr... at gmail.com> wrote:
> Hey all,
>
> anybody know, if there´s a way to specify the kerning of a font, when
> you draw text with PIL?
>
> I´d like to achieve the same effect that you get, when you set a
> negative kerning in Gimp/Photshop - ie. reduce the spacing between
> glyphs.
>
> Can PIL do that or do I use another lib for that?
>
> Thx for any pointers & some nice xmas days to U all!
> carsten

No. PIL can't do that. I suggest combination of cairo/pango/pangocairo
(pycairo and pygtk packages).

Ivan



More information about the Python-list mailing list