Bug #12875 Updated: FreeType 2.x & gd 1.x does not work

From: Date: Tue, 21 Aug 2001 14:18:49 +0000
Subject: Bug #12875 Updated: FreeType 2.x & gd 1.x does not work
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-63969@lists.php.net to get a copy of this message
ID: 12875 Updated by: sniper Reported By: maxcom@jet.msk.su Old Status: Open Status: Closed Bug Type: GD related Operating System: any PHP Version: 4.0.6 New Comment: This is already fixed in CVS. Try the latest CVS snapshot: http://snaps.php.net/ Previous Comments: ------------------------------------------------------------------------ [2001-08-21 10:00:33] maxcom@jet.msk.su GD's function gdImageStringTTF does not work with FreeType 2.x, gdImageStringFT should be used instead. gd 1.8.4 diff -u -r php-4.0.6.orig/ext/gd/gd.c php-4.0.6/ext/gd/gd.c --- php-4.0.6.orig/ext/gd/gd.c Tue Aug 21 15:34:47 2001 +++ php-4.0.6/ext/gd/gd.c Tue Aug 21 15:37:00 2001 @@ -2662,7 +2662,7 @@ fontname = (unsigned char *) Z_STRVAL_PP(FONTNAME); #ifdef USE_GD_IMGSTRTTF -# if HAVE_LIBGD20 & HAVE_LIBFREETYPE +# if HAVE_LIBFREETYPE error = gdImageStringFT(im, brect, col, fontname, ptsize, angle, x, y, str); # else error = gdImageStringTTF(im, brect, col, fontname, ptsize, angle, x, y, str); ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12875&edit=1

« previous php.dev (#63969) next »