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.