Cygwin font problems

S

Steve Holden

Is anyone aware of (a fix for) problems I'm having getting PIL 1.1.5 to
create bitmaps using TrueType and openType fonts? When I create an image
using the standard PIL fonts everything seems fine, but when I use
ImageFont.truetype(<font-file>, <size>) no text is drawn.

setup.py reports from debug print statements that it's finding freetype21.

The same code using (Fredrik's pre-built binary) on Windows runs
correctly and produces correct images.

Cygwin runs Python 2.4.1, Windows runs 2.4. Any light on this mystery
gratefully received.

regards
Steve
 
R

Robin Becker

Steve said:
Is anyone aware of (a fix for) problems I'm having getting PIL 1.1.5 to
create bitmaps using TrueType and openType fonts? When I create an image
using the standard PIL fonts everything seems fine, but when I use
ImageFont.truetype(<font-file>, <size>) no text is drawn.

setup.py reports from debug print statements that it's finding freetype21.

The same code using (Fredrik's pre-built binary) on Windows runs
correctly and produces correct images.

Cygwin runs Python 2.4.1, Windows runs 2.4. Any light on this mystery
gratefully received.

regards
Steve
Could PIL have been compiled without freetype support perhaps?
 
S

Steve Holden

Robin said:
Could PIL have been compiled without freetype support perhaps?
Don't think so, as I don't see any errors in the build, and the closing
summary from "python setup.py build" reads

--------------------------------------------------------------------
PIL 1.1.5 BUILD SUMMARY
--------------------------------------------------------------------
version 1.1.5
platform cygwin 2.4.1 (#1, May 27 2005, 18:02:40)
[GCC 3.3.3 (cygwin special)]
--------------------------------------------------------------------
--- TKINTER support ok
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok
--------------------------------------------------------------------

Strangely enough all the tests pass, too!

regards
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top