Bug #1607: ImageTTFString draws mirrored text

From: Date: Sun, 27 Jun 1999 05:59:07 +0000
Subject: Bug #1607: ImageTTFString draws mirrored text
Groups: php.dev 
Request: Send a blank email to php-dev+get-7619@lists.php.net to get a copy of this message
From: php-user@mindcontrol.org Operating system: Linux 2.0 (RedHat 4.2) PHP version: 3.0.9 PHP Bug Type: Misbehaving function Bug description: ImageTTFString draws mirrored text <? Header("Content-type: image/gif"); $image = @imagecreate(200,100); $white = @imagecolorallocate($image, 255, 255, 255); $black = @imagecolorallocate($image, 0, 0, 0); $red = @imagecolorallocate($image, 255, 0, 0); $blue = @imagecolorallocate($image, 0, 0, 255); @imagefilledrectangle($image, 0, 0, 199, 99, $red); @imagefilledrectangle($image, 10, 10, 190, 90, $black); @imagettftext($image, 12, 90, 20, 25, $blue, "ARIAL.TTF", "Good-bye, world!"); imagegif($image); @imagedestroy($image); ?> I'm running Apache 1.3.6, PHP 3.0.9 built as a static module, GD 1.5 and libttf 1.2. I built using: ./configure --with-pgsql --with-apache=../apache_1.3.6 --with-gd=/home/hplus/src/gd1.5 PS: I also had to add extra LDFLAGS and LIBS to the Apache config when doing this, as the config process doesn't do it for me. I also had to define HAVE_LIBTTF manually in config.h. Maybe that should be another bug report.

« previous php.dev (#7619) next »