[php-maint] Bug#473429: [php5-gd] ImageTTFText does not render any string
Matthias Cramer
cramer at freestone.net
Sun Mar 30 15:45:03 UTC 2008
Package: php5-gd
Version: 5.2.5-3
Severity: normal
--- Please enter the report below this line. ---
The following code only produces a black box without any text in it on
two of my machines .
<?php
header ("Content-type: image/gif");
$im = imagecreate (400, 30);
$black = imagecolorallocate ($im, 20, 20, 20);
$white = imagecolorallocate ($im, 255, 200, 255);
$x = imagettftext ($im, 80, 45, 10, 20, $white,
"/usr/share/fonts/truetype/freefont/FreeSansBold.ttf",
"Test... ");
imagegif ($im);
imagedestroy ($im);
?>
This worked a few days ago !
--- System information. ---
Architecture: i386
Kernel: Linux 2.6.24-1-686
Debian Release: lenny/sid
500 unstable caladan.freestone.net
--- Package information. ---
Depends (Version) | Installed
============================================-+-=====================
libc6 (>= 2.7-1) | 2.7-10
libfreetype6 (>= 2.3.5) | 2.3.5-1+b1
libgd2-xpm (>= 2.0.36~rc1~dfsg) | 2.0.36~rc1~dfsg-1
libjpeg62 | 6b-14
libpng12-0 (>= 1.2.13-4) | 1.2.15~beta5-3
libt1-5 | 5.1.2-2
libx11-6 | 2:1.0.3-7
libxpm4 | 1:3.5.7-1
php5-common (= 5.2.5-3) | 5.2.5-3
phpapi-20060613+lfs |
zlib1g | 1:1.2.3.3.dfsg-11
--
Matthias Cramer, Erachfeldstrasse 1b, CH-8180 Bülach, Switzerland
http://www.freestone.net
GnuPG 1024D/2D208250 = DBC6 65B6 7083 1029 781E 3959 B62F DF1C 2D20 8250
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 324 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20080330/2c7f0897/attachment.pgp
More information about the pkg-php-maint
mailing list