ID: 39031 Updated by: [EMAIL PROTECTED] Reported By: vijijvs at yahoo dot co dot in -Status: Analyzed +Status: Closed Bug Type: Documentation problem Operating System: Mandrake Linux PHP Version: Irrelevant New Comment:
Still undocumented, but freetype requirement mentioned. Previous Comments: ------------------------------------------------------------------------ [2006-10-05 08:54:34] [EMAIL PROTECTED] imageftbbox, imagefttext requires freetype-support in gd. your output from gd shows, that your gd is not compiled with freetype-support. ------------------------------------------------------------------------ [2006-10-05 04:31:52] vijijvs at yahoo dot co dot in Following is the information got for gdinfo: array(10) { ["GD Version"]=> string(13) "2.0 or higher" ["FreeType Support"]=> bool(false) ["T1Lib Support"]=> bool(false) ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XBM Support"]=> bool(false) ["JIS-mapped Japanese Font Support"]=> bool(false) } ------------------------------------------------------------------------ [2006-10-04 18:23:37] [EMAIL PROTECTED] According to the source (gd.c): ifdef ENABLE_GD_TTF PHP_FE(imagettfbbox, arginfo_imagettfbbox) PHP_FE(imagettftext, arginfo_imagettftext) #if HAVE_LIBFREETYPE && HAVE_GD_STRINGFTEX PHP_FE(imageftbbox, arginfo_imageftbbox) PHP_FE(imagefttext, arginfo_imagefttext) #endif #endif Currently both imageftbbox() and imagefttext() have the undocumented status so essentially this bug report asks them to be documented. There are currently ~700* functions with the undocumented status but let's leave this one open anyways... * http://doc.php.net/php/undoc_functions.php ------------------------------------------------------------------------ [2006-10-04 17:07:36] judas dot iscariote at gmail dot com Your PHP is compiled against a GD version that doesn't support this. what gdinfo says ? <?php var_dump(gd_info()); ?> ------------------------------------------------------------------------ [2006-10-04 06:52:03] vijijvs at yahoo dot co dot in Description: ------------ I get a fatal error: Fatal error: Call to undefined function: imageftbbox()in php4.3.9 even though other image functions are working. Reproduce code: --------------- $fontSize = 5; $lineSpacing = 1; list($llx, $lly, $lrx, $lry, $urx, $ury, $ulx, $uly) = imageftbbox($fontSize, 0, $fontFileName, $text, array("linespacing" => $lineSpacing)); $textWidth = $lrx - $llx; $textHeight = $lry - $ury; $angle = 0; Actual result: -------------- Fatal error: Call to undefined function: imageftbbox() ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39031&edit=1