Is there any problem on Php 4.3.2 GD lib ?
My code works fine on Php 4.3.1 but not work 4.3.2
here code
<?php
Header ("Content-type: image/jpeg");
$text = "some text"; $s = 20;
$fontfile = "/usr/X11R6/lib/X11/fonts/truetype/arial.ttf"; $size = imagettfbbox($s,0,"$fontfile",$text);
$dx = abs($size[2]-$size[0]); $dy = $s-1; $xpad=9; $ypad=9; $im = imagecreate($dx+$xpad,$dy+$ypad);
$white = ImageColorAllocate($im, 255,255,255); $black = ImageColorAllocate($im, 0,0,0); $blue = ImageColorAllocate($im, 0x2c,0x6D,0xAF);
ImageTTFText($im, $s, 0, (int)($xpad/2)+1, $dy+(int)($ypad/2), $black, "$fontfile", $text);
Imagejpeg ($im); ImageDestroy ($im); ?>
Thanks for help...
Sancar "Delifisek" Saran
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php