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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: maxcom at jet dot msk dot su
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Fri Dec 27 07:01:28 2024 UTC