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.truet ype(<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/ 2 1802
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.truet ype(<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
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.tru etype(<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/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 when I launch my script
under Cygwin, I get strange error messages like:
2 python 1912 Winmain: Cannot register window class
Sometimes all of the threads run OK, otherwise after the "correct"
|
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 because of a binary
module which has to be compiled with Visual C 6.
My scripts start with a '#!/usr/bin/env python' shebang, as God intended.
Now, I assume I can make cmd.exe run foo.py by asociating *.py with the
python interpreter.
|
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 "c:\winnt\system32\cmd.exe".
|
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 the following.
Traceback (most recent call last):
File "drpython.py", line 45, in ?
import wx, wx.stc
|
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 C:/cygwin/usr/X11R6/bin/startlocalxterm.bat
script like this one and start your xterm session using
this.
Note the use of db2cmd /w /i
| |
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
I'd like to move these to the cygwin version of python on the same
system. I tried copying the PyVisa and ctypes directorices (including
|
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 : example.c */
#include <time.h>
double My_variable = 3.0;
|
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 difficult when I try to
add external libs. Such as... GTK. Let's explain what I tried. (oh
well, I'm using Eclipse Europa 3.3.1 and CDT 4.0.1). First I just
added the path of the cygwin includes throug the project->properties-
GNU C the path to...
|
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 pysvn module I'm running into problems getting
it to work under Cygwin. Works fine from a Windows command prompt,
with both the svn_cmd.py example and my own Python code. Under Cygwin
though I just get import failures. pysvn/__init__.py seems to...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |