Skip Menu |
 

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 61328
Status: resolved
Priority: 0/
Queue: Imager

People
Owner: Nobody in particular
Requestors: mauriceh [...] bigpond.net.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Win32 Font not found
Date: Tue, 14 Sep 2010 21:37:48 +0800
To: <bug-Imager [...] rt.cpan.org>
From: "Maurice Height" <mauriceh [...] bigpond.net.au>
I am using Imager v 0.77 on Strawberry Perl v 5.12.1.0 and Windows XP On an earlier version of Imager this code worked fine: my $font = Imager::Font->new( face => 'Tahoma Bold', size => 14, color => 'black ) or die qq[ERROR: failed to load font face for 'title_font' :], Imager->errstr; With Imager v 0.77 I get this error in my code: ERROR: failed to load font face for 'title_font' :`w32' not enabled at C:/MyCode/M_perl/dev_lib/TimeSeries/Graph.pm line 217. I notice for the following code lines as displayed in debugger (Devel::ptkdb) # Line 120 of Font.pm calls line 03961 in Imager.pm 00120 if (!$Imager::formats{$type}) 03961 sub FETCH 03962 my ($self, $key) = @_ 03963 03964 exists $self->[IX_FORMATS]{$key} and return $self->[IX_FORMATS]{$key} 03965 03966 $self->[IX_CLASSES]{$key} or return undef that key = 'w32' which seems correct, but $self->[IX_FORMATS]{'w32'} does not exist. Thanks Maurice Height
Download (untitled) / with headers
text/plain 857b
On Tue Sep 14 09:37:19 2010, mauriceh@bigpond.net.au wrote: Show quoted text
> I am using Imager v 0.77 on Strawberry Perl v 5.12.1.0 and Windows XP > > On an earlier version of Imager this code worked fine: >
... Show quoted text
> that key = 'w32' which seems correct, but $self->[IX_FORMATS]{'w32'} does > not exist.
The problem is the windows headers are no longer visible in the directories Imager searches for headers, in strawberry perl. As a workaround you can tell Imager's Makefile.PL to search the appropriate directory: set IM_INCPATH=c:\strawberry\c\i686-w64-mingw32\include perl Makefile.PL ... The Imager 0.73 supplied with strawberry also appears to not have access to win32 fonts. I have some better library probe tools I've be integrating into Imager that will handle this, I'll need to do that for Win32 earlier than I expected - ie. the next release. Tony
Subject: RE: [rt.cpan.org #61328] Win32 Font not found
Date: Wed, 15 Sep 2010 19:57:57 +0800
To: <bug-Imager [...] rt.cpan.org>
From: "Maurice Height" <mauriceh [...] bigpond.net.au>
Download (untitled) / with headers
text/plain 1.2k
Hi Tony Thanks very much for your accurate and speedy response. Keep up the good work - your module is much appreciated. Maurice Show quoted text
-----Original Message----- From: TONYC via RT [mailto:bug-Imager@rt.cpan.org] Sent: Tuesday, 14 September 2010 10:03 PM To: mauriceh@bigpond.net.au Subject: [rt.cpan.org #61328] Win32 Font not found <URL: https://rt.cpan.org/Ticket/Display.html?id=61328 > On Tue Sep 14 09:37:19 2010, mauriceh@bigpond.net.au wrote:
> I am using Imager v 0.77 on Strawberry Perl v 5.12.1.0 and Windows XP > > On an earlier version of Imager this code worked fine: >
...
> that key = 'w32' which seems correct, but $self->[IX_FORMATS]{'w32'} > does not exist.
The problem is the windows headers are no longer visible in the directories Imager searches for headers, in strawberry perl. As a workaround you can tell Imager's Makefile.PL to search the appropriate directory: set IM_INCPATH=c:\strawberry\c\i686-w64-mingw32\include perl Makefile.PL ... The Imager 0.73 supplied with strawberry also appears to not have access to win32 fonts. I have some better library probe tools I've be integrating into Imager that will handle this, I'll need to do that for Win32 earlier than I expected - ie. the next release. Tony
Download (untitled) / with headers
text/plain 516b
On Tue Sep 14 10:03:16 2010, TONYC wrote: Show quoted text
> On Tue Sep 14 09:37:19 2010, mauriceh@bigpond.net.au wrote:
> > I am using Imager v 0.77 on Strawberry Perl v 5.12.1.0 and Windows XP > > > > On an earlier version of Imager this code worked fine: > >
> ...
> > that key = 'w32' which seems correct, but $self->[IX_FORMATS]{'w32'}
does Show quoted text
> > not exist.
> > The problem is the windows headers are no longer visible in the > directories Imager searches for headers, in strawberry perl.
This is fixed in Imager 0.78. Tony


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.