Building PHP with freetype and libgd 1.8
| From: | Jeremy Bettis | Date: | Thu, 05 Jul 2001 19:21:47 +0000 |
| Subject: | Building PHP with freetype and libgd 1.8 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-59016@lists.php.net to get a copy of this message | ||
I had trouble building cvs version of PHP with libfreetype. Right now
HAVE_LIBFREETYPE only works if HAVE_LIBGD20, this patch fixes that.
Index: ext/gd/gd.c
===================================================================
RCS file: /repository/php4/ext/gd/gd.c,v
retrieving revision 1.138
diff -u -r1.138 gd.c
--- ext/gd/gd.c 2001/07/02 12:49:21 1.138
+++ ext/gd/gd.c 2001/07/05 19:12:41
@@ -2659,7 +2659,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);
--
Jeremy Bettis
jeremy+phpnews@deadbeef.com