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
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
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