473,320 Members | 1,876 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,320 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 1777
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: AdSR | last post by:
Hello, Nothing relevant found on Google for this, so I'm asking here. I wrote a short script that launches several threads (parallel download using urllib.urlretrieve in this case). Sometimes...
2
by: Jorgen Grahn | last post by:
I couldn't think of a good solution, and it's hard to Google for... I write python command-line programs under Win2k, and I use the bash shell from Cygwin. I cannot use Cygwin's python package...
0
by: Pekka Niiranen | last post by:
Hi, I started cygwin shell with command subprocess.call("c:\\cygwin\\cygwin.bat") from Python 2.4. Shell works fine but the fonts/layout are set according to program...
2
by: Stephane Roy | last post by:
Hi, Did someone installed and used successfully drPython on Cygwin? The installation requires wxpython. I tried many different alternatives (source, binary, etc) but so far the best I get is...
0
by: gimme_this_gimme_that | last post by:
I spent about an hour getting this today ... For you cygwin users who want to run db2 commands like you'd run them from a UNIX environment .... Create a...
2
by: 63q2o4i02 | last post by:
Hi, I'm using python 2.4 and windows XP. I have two packages in the windows version of python in site-packages. They are PyVisa and ctypes, and both live in c:\python24\lib\site-packages ...
0
by: Michael Yanowitz | last post by:
Hello: I am just trying out SWIG, but quickly ran into problems. Using Cygwin gcc, I tried the following: 1) Created example.c (as given on http://www.swig.org/tutorial.html ) /* File :...
10
by: Gotch | last post by:
Hi all, I've installed the CDT plugin for Eclipse and I want to use it to work on C/C++ projects under Cygwin. It works, in fact it compiles and runs the usual helloworld c++ program. Now it comes...
3
by: Andy Dingley | last post by:
I'm building Python tools to wrap up access to our Subversion / SVN source control system. It's to run on my desktop (Cygwin under Windows XP) and then later under Redhat. Trying to install the...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.