I wonder if there is any module for rendering True
Type Fonts in Python ? I need to create a GIF files
with nice antialiased text and I'm unable to find
any module with such functionality.
vald <vald@valis.amb er.eu.org> wrote in
news:mailman.10 63224795.24414. python-list@python.org :
[color=blue]
>
> I wonder if there is any module for rendering True
> Type Fonts in Python ? I need to create a GIF files
> with nice antialiased text and I'm unable to find
> any module with such functionality.[/color]
One idea:
pygame can render with TTF fonts,
it can also save surfaces in tga format.
Then use PIL to convert to gif. The only
question is, can pygame do this without displaying
a window etc.
[color=blue][color=green][color=darkred]
>>> Simon Burton wrote[/color][/color]
>
> One idea:
> pygame can render with TTF fonts,
> it can also save surfaces in tga format.
> Then use PIL to convert to gif. The only
> question is, can pygame do this without displaying
> a window etc.[/color]
Absolutely - I have code here that generates animated gifs doing
just this sort of thing.
Anthony
--
Anthony Baxter <anthony@interl ink.com.au>
It's never too late to have a happy childhood.
vald wrote:[color=blue]
> I wonder if there is any module for rendering True
> Type Fonts in Python ? I need to create a GIF files
> with nice antialiased text and I'm unable to find
> any module with such functionality.
>
> Sincerely,
> K.
>[/color]
If you want something a bit lighter than PyGame or PIL, there's also gd with
gdmodule:
[color=blue]
>
> One idea:
> pygame can render with TTF fonts,
> it can also save surfaces in tga format.
> Then use PIL to convert to gif. The only
> question is, can pygame do this without displaying
> a window etc.
>
> Simon Burton.[/color]
Comment