|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-15 23:04 UTC] sniper@php.net
[2003-07-20 10:41 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 20:00:02 2025 UTC |
Description: ------------ When using PHP 4.3.2's internal GD library with the with or without the FreeType/FreeType2 functions, imagettftext() and imagettfbbox() are not compiled into PHP. When I forced it to be compiled into PHP (by setting the define in gd.c), the functions both operated very strangely, returning coords in the millions, no matter what parameters were given to it. Reproduce code: --------------- <?php $arr = imagettfbbox(20, 0, $font, $string); var_dump($arr); ?> Expected result: ---------------- Proper coordinates for the bounding box. Actual result: -------------- array(8) { [0]=> int(-1073758404) [1]=> int(1076848078) [2]=> int(1948291952) [3]=> int(1930279504) [4]=> int(-1073758404) [5]=> int(1077268252) [6]=> int(135248404) [7]=> int(135267020) }