Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 18th, 2005, 10:56 PM
Greg Lindstrom
Guest
 
Posts: n/a
Default Fonts and PIL

Hello-
I'm running Python 2.3 on a windows box and would like to use PIL to
superimpose text over an existing pgn image. I have no problem getting
the text on the image but can not figure out how to manage fonts. How
to set the font style and size. From reading the archives I surmise
that I want to work with *.pil files. I've searched my box for the font
files but did not find them. I've googled for information on pil font
files and it appears to be involved with Zope. So, can any of you
honcho-level types help me out? How can I set font size and style in my
PIL application?

Thanks again!
--greg

--
Greg Lindstrom 501 975.4859
Computer Programmer greg.lindstrom@novasyshealth.com
NovaSys Health
Little Rock, Arkansas

"We are the music makers, and we are the dreamers of dreams." W.W.

  #2  
Old July 18th, 2005, 10:57 PM
Ulf Göransson
Guest
 
Posts: n/a
Default Re: Fonts and PIL

Greg Lindstrom wrote:[color=blue]
> I'm running Python 2.3 on a windows box and would like to use PIL to
> superimpose text over an existing pgn image. I have no problem getting
> the text on the image but can not figure out how to manage fonts. How
> to set the font style and size. From reading the archives I surmise
> that I want to work with *.pil files. I've searched my box for the font
> files but did not find them. I've googled for information on pil font
> files and it appears to be involved with Zope. So, can any of you
> honcho-level types help me out? How can I set font size and style in my
> PIL application?[/color]

Pick a nice .ttf file and load it with ImageFont.truetype().

/ug
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles