|  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:
Solve the problem:
49 - 21 = ?
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);
 	error = gdImageStringFT(im, brect, col, fontname, ptsize, angle, x, y, str);
 # else
 	error = gdImageStringTTF(im, brect, col, fontname, ptsize, angle, x, y, str);


Add a Patch

Pull Requests

Add a Pull Request


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

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Dec 09 08:05:52 2022 UTC