Hi Everyone... I have installed jpgraph, when i run a php script with the function call imagettftext(), i get the message "Call to undefined function imagettftext()"...
I have freetype and gd installed and working. I am using ./configure --with-oci8=/u01/oracle/10.1.0 --with-gd --with-apxs2=/usr/sbin/apxs --with-zlib-dir=/u01/php/php-5.1.0b3/ext/zlib --enable-sigchild --with-dom --enable-gd-native-ttf --with-freetype-dir=/usr/include/freetype2 My questions are Which exact library has this call imagettftext ? Can someone tell me exactly what options i need to use when using configure, to get jpgraph to work ? Thank you for your help with this. Pasting the code that i am trying to run below. -Rajeev. include ("/u01/jpgraph-2.0beta/src/jpgraph.php"); include ("/u01/jpgraph-2.0beta/src/jpgraph_line.php"); DEFINE ("TTF_DIR","/u01/OpenOffice.org1.1.4/share/fonts/truetype" ); $im = imagecreatetruecolor (400, 100); $black = imagecolorallocate ($im, 0, 0, 0); $white = imagecolorallocate ($im, 255, 255, 255); imagerectangle ($im,0, 0,399,99 ,$black); imagefilledrectangle ($im,0, 0,399,99 ,$white); imagettftext ($im, 30, 0, 10, 40 , $black, "Vera.ttf", "Hello World!"); header ("Content-type: image/png" ); imagepng ($im); __________________________________________________________________ Switch to Netscape Internet Service. As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp