Bug #12875: FreeType 2.x & gd 1.x does not work
| From: | maxcom at jet dot msk dot su | Date: | Tue, 21 Aug 2001 14:00:34 +0000 |
| Subject: | Bug #12875: FreeType 2.x & gd 1.x does not work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-63968@lists.php.net to get a copy of this message | ||
From: maxcom@jet.msk.su
Operating system: any
PHP version: 4.0.6
PHP Bug Type: GD related
Bug description: FreeType 2.x & gd 1.x does not work
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 bug report at: http://bugs.php.net/?id=12875&edit=1