$img->write(file=>$outfile)
or die "Cannot save $outfile: ",$img->errstr,"\n";
-=item transformed_bounds
-
-Returns a list of bounds:
- (minx, miny, maxx, maxy)
-
-These are offsets from the text's starting point in font co-ordinates
-- so positive y is I<up>.
-
-Note: this returns the bounds of the transformed bounding box, in most
-cases the actual text will not be touching these boundaries.
-
-=cut
-
sub transformed_bounds {
my ($bbox, $matrix) = @_;
But if you do need the bounds, the code above does show you how to do
it.
+=head1 FUNCTIONS
+
+=over
+
+=item transformed_bounds
+
+Returns a list of bounds:
+ (minx, miny, maxx, maxy)
+
+These are offsets from the text's starting point in font co-ordinates
+- so positive y is I<up>.
+
+Note: this returns the bounds of the transformed bounding box, in most
+cases the actual text will not be touching these boundaries.
+
+=cut
+
+=back
+
=head1 AUTHOR
Tony Cook <tony@imager.perl.org>
use strict;
use lib 't';
use Test::More;
+use ExtUtils::Manifest qw(maniread);
eval "use Test::Pod 1.00;";
plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
-all_pod_files_ok();
+my $manifest = maniread();
+my @pod = grep /\.(pm|pl|pod|PL)$/, keys %$manifest;
+plan tests => scalar(@pod);
+for my $file (@pod) {
+ pod_file_ok($file, "pod ok in $file");
+}