require Exporter;
require DynaLoader;
- $VERSION = '0.39';
+ $VERSION = '0.40pre1';
@ISA = qw(Exporter DynaLoader);
bootstrap Imager $VERSION;
}
# i_init_fonts();
# $fontstate='ok';
# }
+ if (exists $parms{'t1log'}) {
+ i_init_fonts($parms{'t1log'});
+ }
}
END {
or return undef;
if (ref $x && ref $y) {
unless (@$x == @$y) {
- $self->{ERRSTR} = 'length of x and y mistmatch';
+ $self->{ERRSTR} = 'length of x and y mismatch';
return undef;
}
if ($color->isa('Imager::Color')) {
sub getpixel {
my $self = shift;
- my %opts = ( type=>'8bit', @_);
+ my %opts = ( "type"=>'8bit', @_);
unless (exists $opts{'x'} && exists $opts{'y'}) {
$self->{ERRSTR} = 'missing x and y parameters';
return undef;
}
my @result;
- if ($opts{type} eq '8bit') {
+ if ($opts{"type"} eq '8bit') {
for my $i (0..$#{$opts{'x'}}) {
push(@result, i_get_pixel($self->{IMG}, $x->[$i], $y->[$i]));
}
return wantarray ? @result : \@result;
}
else {
- if ($opts{type} eq '8bit') {
+ if ($opts{"type"} eq '8bit') {
return i_get_pixel($self->{IMG}, $x, $y);
}
else {