|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-02-23 17:25 UTC] capile at tcdesign dot com dot br
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
)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 12:00:01 2025 UTC |
Just tried the latest stable snapshot, and still an awkward result: php4-STABLE-200602231535/bin/php ~/gd-test.php Array ( [0] => 1 [1] => 11 [2] => -1073758856 [3] => 1083817944 [4] => 1083820576 [5] => 1083820576 [6] => -1073758840 [7] => 1083048044 ) This did not happen in 4.4.2 release (not snapshot) in Win32, neither in 4.4.1 release in FreeBSD (didn't test the 4.4.2 version on FreeBSD)