By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,795 Members | 1,666 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,795 IT Pros & Developers. It's quick & easy.

TTF fonts rendered in Python

P: n/a

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.

Jul 18 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
vald <va**@valis.amber.eu.org> wrote in
news:ma**********************************@python.o rg:

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.


lok at pygame and pil

chris

--
Chris <cl******@gmx.net>

Jul 18 '05 #2

P: n/a

P: n/a

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.

Jul 18 '05 #4

P: n/a
Simon Burton wrote


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.


Absolutely - I have code here that generates animated gifs doing
just this sort of thing.

Anthony
--
Anthony Baxter <an*****@interlink.com.au>
It's never too late to have a happy childhood.
Jul 18 '05 #5

P: n/a
vald wrote:
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.


If you want something a bit lighter than PyGame or PIL, there's also gd with
gdmodule:
http://newcenturycomputers.net/projects/gdmodule.html
http://www.boutell.com/gd/

HTH
--
- Eric Brunel <er*********@pragmadev.com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com

Jul 18 '05 #6

P: n/a


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.


Perhaps python gdmodule will do?
http://newcenturycomputers.net/projects/gdmodule.html

--
Дамјан (jabberID:da****@bagra.net.mk)

ISP techs know most computer problems are PEBKAC.
(Problem Exists Between Keyboard And Chair)
Jul 18 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.