Bug #17924: String is missing when using functions like imageTTFtext

From: Date: Sat, 22 Jun 2002 16:41:01 +0000
Subject: Bug #17924: String is missing when using functions like imageTTFtext
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11799@lists.php.net to get a copy of this message
From: mathias.grub@web.de Operating system: Windows 2000 pro PHP version: 4.2.1 PHP Bug Type: GD related Bug description: String is missing when using functions like imageTTFtext When running PHP with GD > 2 and Freetype >= 2 all functions which use ttf fonts (different from the built-in fonts (1-5)) don't draw the requested text string on the image, eg: imageLoadFont($pathtofont)or die('damn, cannot loadit'); results always in the 'or die()' part. In any case. Independent on if you use doc-relative path, root-relative path or absolute path (including drive letter/ IP). The windows binary of PHP 4.06 comes with GD 1.64. And phpinfo() says for 'FreeType Linkage' TrueType Library. If this is so, the above and following problems don't appear and solved. But the PHP 4.10, 4.11, 4.12 Windows Distributions come with GD 2.0 or higher and obviously with freetype V.1, because the function imageFTtext() creates an error: Freetype 2 is required. OK, lets install PHP 4.21 to get Freetype 2 support. Well done, the error message when using imageTTFtext() or imageFTtext is gone, but the wanted string is left blank. Beside to the function above imageloadfont()or die(); which always ends in the or die part. I guess the trio PHP 4.2/GD2/Freetype2 is not able to write text with ttf fonts onto an image. Seems to be an (evil, bad) bug. Am I right? -- Edit bug report at http://bugs.php.net/?id=17924&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17924&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17924&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17924&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17924&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17924&r=support Expected behavior: http://bugs.php.net/fix.php?id=17924&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17924&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17924&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17924&r=globals

« previous php.bugs (#11799) next »