473,405 Members | 2,300 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,405 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 1784
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.