473,395 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

TTF fonts rendered in Python


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
6 5799
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

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
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
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


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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sven Kobow | last post by:
Hello, I'm not yet a python programmer but a python user. I faced a problem with tiny fonts in a wxPython app on a GNU/Debian system. Under Gentoo Linux the fonts are displayed in a normal...
21
by: Headless | last post by:
I've marked up song lyrics with the <pre> tag because it seems the most appropriate type of markup for the type of data. This results in inefficient use of horizontal space due to UA's default...
66
by: Alan Illeman | last post by:
Is there a listing of serif fonts and san-serif fonts somewhere? Regards, Alan -- A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A:...
258
by: Terry Andersen | last post by:
If I have: struct one_{ unsigned int one_1; unsigned short one_2; unsigned short one_3; }; struct two_{ unsigned int two_1;
3
by: MikeB | last post by:
Hi all, I have written an Ecard application which takes text input from the user on one .aspx page and renders the message to a template .jpg and displays the results on a 2nd .aspx page. The...
10
by: Kamilche | last post by:
I have a question for all you Pythoneers out there. I'm making a game with Python, and have a need for fonts. I am currently using a free TrueType font, but am considering switching to a bitmap...
1
by: Atul | last post by:
Hi, I have installed a truetype font (.ttf) on a linux machne (SUSE linux 10, KDE) by copying it to my .fonts folder. I can use the font in all applications like open-office and firefox browser....
12
by: ctclibby | last post by:
Hi all Have a customer that wants a specific font included in her web page design; Comic Sans MS. This is one of the MS core fonts. The problem I have is that some of the *nix browsers do NOT...
70
by: axlq | last post by:
I'm trying to design my style sheets such that my pages have similar-looking fonts different platforms (Linux, Mac, Adobe, X-Windows, MS Windows, etc). The problem is, a font on one platform...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.