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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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: Thu Dec 26 17:01:31 2024 UTC