php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12875 FreeType 2.x & gd 1.x does not work
Submitted: 2001-08-21 10:00 UTC Modified: 2001-08-21 10:18 UTC
From: maxcom at jet dot msk dot su Assigned:
Status: Closed Package: GD related
PHP Version: 4.0.6 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
9 + 33 = ?
Subscribe to this entry?

 
 [2001-08-21 10:00 UTC] maxcom at jet dot msk dot 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);

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-21 10:18 UTC] sniper@php.net
This is already fixed in CVS. Try the latest CVS snapshot:
http://snaps.php.net/


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 13:01:27 2024 UTC