cvs: php3 /functions gd.c

From: Date: Sat, 06 Jan 2001 13:21:15 +0000
Subject: cvs: php3 /functions gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3402@lists.php.net to get a copy of this message
hirokawa Sat Jan 6 05:21:15 2001 EDT Modified files: /php3/functions gd.c Log: backport option for gd's truetype string function from PHP4. Index: php3/functions/gd.c diff -u php3/functions/gd.c:1.156 php3/functions/gd.c:1.157 --- php3/functions/gd.c:1.156 Sun Oct 22 12:45:43 2000 +++ php3/functions/gd.c Sat Jan 6 05:21:14 2001 @@ -29,7 +29,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.156 2000/10/22 19:45:43 rasmus Exp $ */ +/* $Id: gd.c,v 1.157 2001/01/06 13:21:14 hirokawa Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -2220,8 +2220,11 @@ l = strlen(string); fontname = (unsigned char *) FONTNAME->value.str.val; +#ifdef USE_GD_IMGSTRTTF + error = gdImageStringTTF(im, brect, col, fontname, ptsize, angle, x, y, string); +#else error = gdttf(im, brect, col, fontname, ptsize, angle, x, y, string); - +#endif if (error) { php3_error(E_WARNING, "%s", error); RETURN_FALSE;

« previous php.cvs (#3402) next »