I just uninstalled the 0.53b release and installed 0.53
> There's still a problem on my Win98 system, but now it seems
> related to the new font manager:
This is a bug (clearly!). I didn't catch it in my tests because it
only arises when you get an OSError on a win32 registry call, which I
never got. I believe Paul lifted this section of the code from
ttfquery. For a quick fix, in the win32InstalledFonts function, try
replacing
try:
local = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, fontdir)
except OSError:
pass
with
try:
local = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, fontdir)
except OSError:
continue
and let me know how things go.
Paul, is the continue the correct behavior here?
Thanks for the report,
JDH
Hi John and Paul,
I changed the 'pass' to a 'continue' and a different problem has revealed
itself. Now, in lieu of any plot window, I get a Windows dialog with title
'Windows Visual C++ Runtime Library'
and content
Runtime Error
Program C:\APPS\PYTHON23\PYTHONW.EXE
abnormal program termination
Clicking the OK then generates a page fault. This seems a bit nasty. When I
have time later today, I'll see what happens under Win2000 on my laptop. I
should probably try another backend too.
Gary
*********** REPLY SEPARATOR ***********
···
On 21/04/2004 at 10:04 John Hunter wrote:
> I just uninstalled the 0.53b release and installed 0.53
> There's still a problem on my Win98 system, but now it seems
> related to the new font manager:
This is a bug (clearly!). I didn't catch it in my tests because it
only arises when you get an OSError on a win32 registry call, which I
never got. I believe Paul lifted this section of the code from
ttfquery. For a quick fix, in the win32InstalledFonts function, try
replacing
try:
local = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, fontdir)
except OSError:
pass
with
try:
local = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, fontdir)
except OSError:
continue
and let me know how things go.
Paul, is the continue the correct behavior here?
Thanks for the report,
JDH
------------------------------------
Gary Ruben gruben@...1...
<http://users.bigpond.net.au/gazzar>