From:             [EMAIL PROTECTED]
Operating system: Redhat 7.1
PHP version:      4.3.0
PHP Bug Type:     GD related
Bug description:  Strange warning and no functionality in imagettfbbox and imagettftext

here is the script:
<?php
print file_exists("fonts/arial.ttf");
imagettfbbox(20, 0, "fonts/arial.ttf","Testing... ");
?>

which produces the following:
1
Warning: imagettfbbox() [function.imagettfbbox]: øÈÿ¿G˜@ç%@ in
/xxx/xxx/xxx/xxx/test2.php on line 3

so the font file exists, I don't know if that is the problem or not, but
if I turn off error reporting, and use imagettftext, the text doesn't show
up.  I have several applications placing text on a jpeg that work in 4.2.3
and don't place any text in 4.3.0, making 4.3.0 unusable to me until I can
figure out what the difference is.  fyi, compile flags are:

for 4.2.3 (working fine):
'./configure' '--with-apxs' '--with-mysql' '--with-ttf' '--with-jpeg-dir'
'--with-gd' '--with-xpm-dir=/usr/X11R6' '--with-png' '--with-zlib'
'--enable-track-vars' '--without-oracle' '--without-oci8' '--with-xml'
'--with-pdflib=/usr/local' 

for 4.3.0 (not working):
'./configure' '--with-apxs' '--with-mysql' '--with-xpm-dir=/usr/X11R6'
'--with-ttf' '--with-zlib' '--enable-track-vars' '--without-oracle'
'--without-oci8' --with-gd '--with-xml' '--with-pdflib=/usr/local'
'--disable-cgi' --with-jpeg-dir=/usr/lib/ --with-png
--enable-gd-native-ttf

Trying the same compile flags for 4.3 as was used on 4.2.3 doesn't work as
well.

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

Reply via email to