From:             [EMAIL PROTECTED]
Operating system: redhat 7.3
PHP version:      4.2.3
PHP Bug Type:     GD related
Bug description:  Call to undefined function: imagettfbbox() 

I have already GD2 + Freetype2 installed in my machine

when i try to use the imagettfbbox() function , it's show that php cannot
fine the required library for that function !! however when i used other
image function , it's work fine with me ??

============ short script the reproduces the problem ======
<?php 

$imagewidth = 100; 
$imageheight = 20; 
$fontsize = 12; 
$myimg=ImageCreate($imagewidth, $imageheight); 
$col1=ImageColorAllocate($myimg, 255, 0, 0); 
$col2=ImageColorAllocate($myimg, 255, 255, 255); 
$thetextbox = ImageTTFBBox ($fontsize, 0, "TIMES.TTF", "My Button"); 
$textwidth = (($thetextbox[4] + $thetextbox[2]) / 2) - (($thetextbox[6] +
$thetextbox[0]) / 2); 
$xpos = ($imagewidth - $textwidth) / 2; 
$ypos = 14; 
ImageTTFText ($myimg, $fontsize, 0, $xpos, $ypos, $col2,
"./ttfonts/arialnb.ttf", "My Button"); 
ImagePNG($myimg, "myimg.png"); 
ImageDestroy($myimg); 
?> 
<img src="myimg.png" border=0>
================================================


any suggestions ??


Regards,
AlNadabi
-- 
Edit bug report at http://bugs.php.net/?id=21028&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21028&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21028&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21028&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21028&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21028&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21028&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21028&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21028&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21028&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21028&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21028&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21028&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21028&r=isapi

Reply via email to