471,854 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Cygwin font problems

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
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

Aug 28 '05 #1
2 1715
Steve Holden wrote:
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?

--
Robin Becker
Aug 29 '05 #2
Robin Becker wrote:
Steve Holden wrote:
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?

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
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

Aug 29 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by AdSR | last post: by
2 posts views Thread by Jorgen Grahn | last post: by
reply views Thread by Pekka Niiranen | last post: by
reply views Thread by gimme_this_gimme_that | last post: by
2 posts views Thread by 63q2o4i02 | last post: by
reply views Thread by Michael Yanowitz | last post: by
10 posts views Thread by Gotch | last post: by
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

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.