specific to Imager::Font::Type1
- mc_web_map was storing colors with an alpha of 0
- update the URLs for libpng and zlib
- - Fixed empty string handling for tt font driver.
- - Fixed tiff handling of images all contained in a
- single strip (rowsperstrip = -1) and added a hack
- for images missing the rowsperstrip tag.
- - Fixed default parameters for crop()
- - Added Preliminary specialized scaling code.
- - Added image type detection.
+ - Fixed empty string handling for tt font driver.
+ - Fixed tiff handling of images all contained in a
+ single strip (rowsperstrip = -1) and added a hack
+ for images missing the rowsperstrip tag.
+ - Fixed default parameters for crop()
+ - Added Preliminary specialized scaling code.
+ - Added image type detection.
+ - added smoke test for win32 font bounding_box() method, and
+ fixed the problem reported in ticket #1748.
+ - update t37w32font.t to use i_line() instead of i_draw()
+ - replaced non-portable call to rint() with (int)(dy+0.5) (so we
+ can build on Win32)
+
=================================================================
For latest versions check the Imager-devel pages:
#!perl -w
-BEGIN { $| = 1; print "1..4\n"; }
+BEGIN { $| = 1; print "1..5\n"; }
END {print "not ok 1\n" unless $loaded;}
use Imager qw(:all);
$loaded = 1;
print "#bbox: ($bbox[0], $bbox[1]) - ($bbox[2], $bbox[3])\n";
Imager::i_wf_cp($fontname,$overlay,5,50,1,50.0,'XMCLH',1,1);
-i_draw($overlay,0,50,100,50,$bgcolor);
+i_line($overlay,0,50,100,50,$bgcolor, 1);
open(FH,">testout/t37w32font.ppm") || die "cannot open testout/t37w32font.ppm\n";
binmode(FH);
$backgr=Imager::ImgRaw::new(500,300,3);
Imager::i_wf_text($fontname,$backgr,100,100,$bgcolor,100,'MAW.',1, 1);
-i_draw($backgr,0, 100, 499, 100, NC(0, 0, 255));
+i_line($backgr,0, 100, 499, 100, NC(0, 0, 255), 1);
open(FH,">testout/t37w32font2.ppm") || die "cannot open testout/t37w32font2.ppm\n";
binmode(FH);
font=>$font);
$img->write(file=>'testout/t37_oo.ppm') or print "not ";
print "ok 4 # ",$img->errstr||'',"\n";
+my @bbox2 = $font->bounding_box(string=>'Imager');
+if (@bbox2 == 6) {
+ print "ok 5 # @bbox2\n";
+}
+else {
+ print "not ok 5\n";
+}