Skip Menu |
 

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 66283
Status: rejected
Priority: 0/
Queue: Imager

People
Owner: Nobody in particular
Requestors: bitcard [...] faxm0dem.org
Cc:
AdminCc:

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



Subject: Imager::Font->string documentation error
Download (untitled) / with headers
text/plain 451b
Documentation claims -> string takes "text" as argument, instead of "string": -- $img->string(font => $font, text => "Model-XYZ", x => 15, y => 40, size => 40, color => $red, aa => 1); -- I would strongly encourage to use Params::Validate for all functions, as in this example there is no error message if using "text", and resulting image contains no text.
From: bitcard [...] faxm0dem.org
Download (untitled) / with headers
text/plain 535b
Le Mar 01 Mar 2011 07:53:30, faxm0dem a écrit : Show quoted text
> Documentation claims -> string takes "text" as argument, instead of > "string": > > -- > $img->string(font => $font, > text => "Model-XYZ", > x => 15, > y => 40, > size => 40, > color => $red, > aa => 1); > -- > > I would strongly encourage to use Params::Validate for all functions, as > in this example there is no error message if using "text", and resulting > image contains no text.
From: bitcard [...] faxm0dem.org
I got confused with error handling and rt - sorry text and string both seem to work


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.