From:             capile at tcdesign dot com dot br
Operating system: Linux
PHP version:      4.4.2
PHP Bug Type:     GD related
Bug description:  The native ttf functions are broken

Description:
------------
The TTF functions like imagettfbbox, imagettftext do not work.
imagettfbbox return weird results and imagettftext does not render
anything.

Everything worked fine for PHP-4.3.10 (expected result). The setup was
made with the bundled GD and native ttf support.

Reproduce code:
---------------
<?php print_r(imagettfbbox ( '9', '0', 'garamond.ttf', 'Sample text')); ?>

Expected result:
----------------
Array
(
    [0] => -1
    [1] => 3
    [2] => 49
    [3] => 3
    [4] => 49
    [5] => -9
    [6] => -1
    [7] => -9
)


Actual result:
--------------
Array
(
    [0] => 1
    [1] => 11
    [2] => -1073761736
    [3] => 1083817944
    [4] => 1083820576
    [5] => 1083820576
    [6] => -1073761720
    [7] => 1083048044
)


-- 
Edit bug report at http://bugs.php.net/?id=36498&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36498&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36498&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36498&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36498&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=36498&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36498&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36498&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36498&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36498&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36498&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=36498&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=36498&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36498&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36498&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36498&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36498&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36498&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36498&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36498&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36498&r=mysqlcfg

Reply via email to