Subject: | drawing anti-aliased text can cause a floating point exception |
Date: | Tue, 12 Jun 2007 23:00:20 +1000 |
To: | bug-Imager [...] rt.cpan.org |
From: | tonyc [...] cpan.org |
drawing anti-aliased text on an image with an image with an opaque
alpha channel can cause a floating point exception on division by
zero.
my $im = Imager->new(xsize => 100, ysize => 100, channels => 4);
$im->box(filled => 1, color => '#ff0000FF');
my $font = Imager::Font->new(file=>'fontfiles/ImUgly.ttf', type=>'ft2');
ok($im->string(x => 0, 'y' => 40, text => 'test',
size => 11, sizew => 11, font => $font, aa => 1),
'draw on image with opaque alpha')