Re: [PHP4BETA] ImageTTFText displays text backwards

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: [PHP4BETA] ImageTTFText displays text backwards
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-7061@lists.php.net to get a copy of this message
> i run a freebsd machine with apache 1.3.9 & php4.0b3 compiled with gd > (1.7.3) & libttf (1.3) support.. > > whenever i call ImageTTFText(), the text displayed on the image is > backwards, as if it was in a mirror before being put in the image.. an > example i threw together is > http://www.cynikal.net/~cynikal/ttf.phtml > i've tried playing around with the angle settings but still no luck.. > > anyone know why this happens or how to fix it? If you look in ext/gd/gdttf.c you will see this code: #if HAVE_LIBGD13 pixel = &im->pixels[y3][x3]; #else pixel = &im->pixels[x3][y3]; #endif Thus, if you have HAVE_LIBGD13 defined and you are not actually using gd-1.3, your text will be backwards. Edit php_config.h and toggle the setting of HAVE_LIBGD13 and recompile (touch ext/gd/gdttf.c to make sure it gets recompiled) -Rasmus

« previous php.version4 (#7061) next »