From owner-freebsd-ports Tue Sep 4 5:38:14 2001 Delivered-To: freebsd-ports@freebsd.org Received: from apeiba.wanadoo.fr (smtp-rt-2.wanadoo.fr [193.252.19.154]) by hub.freebsd.org (Postfix) with ESMTP id F041637B407; Tue, 4 Sep 2001 05:37:58 -0700 (PDT) Received: from andira.wanadoo.fr (193.252.19.152) by apeiba.wanadoo.fr; 4 Sep 2001 14:37:55 +0200 Received: from florent (193.252.194.130) by andira.wanadoo.fr; 4 Sep 2001 14:37:00 +0200 Message-ID: <010101c1353e$6d6fea20$0300a8c0@florent> From: "Florent CHANTRET" To: Cc: Subject: FreeBSD Port: php4-4.0.6_1 Date: Tue, 4 Sep 2001 14:37:54 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00FA_01C1354F.2EBEA8A0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org C'est un message de format MIME en plusieurs parties. ------=_NextPart_000_00FA_01C1354F.2EBEA8A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I've noticed a bug for PHP 4.0.6 (both in CGI style and in apache = mod) with GD 1.8.4 and Freetype 2.0.4 When you build PHP with GD, GD is correctly build with freetype to write = True Type Fonts. I can verify this with the bundled binary program = gdtestft=20 But PHP doesn't recognized freetype. For it, GD is build without = freetype. So PHP works with GD for creating jpeg and png, but you can't = use the TTF functions. I've seen how to resolve the problem and I have done it manually but I = don't know how to make a patch file to include in the ports of FreeBSD. = So here is the thing to do : In the decompressed archive for php, we must change in ext/gd/gd.c the = following line : # if HAVE_LIBGD20 & HAVE_LIBFREETYPE to # if HAVE_LIBFREETYPE And then it should work. If you want, you can see the complete thread concerning this bug here : = http://www.php.net/bugs.php?id=3D12065&edit=3D1 Regards, Florent CHANTRET ------=_NextPart_000_00FA_01C1354F.2EBEA8A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi, I've noticed a bug for PHP 4.0.6 = (both in CGI=20 style and in apache mod) with GD 1.8.4 and Freetype 2.0.4
 
When you build PHP with GD, GD is = correctly build=20 with freetype to write True Type Fonts. I can verify this with the = bundled=20 binary program gdtestft
 
But PHP doesn't recognized freetype. = For it, GD is=20 build without freetype. So PHP works with GD for creating jpeg and png, = but you=20 can't use the TTF functions.
 
I've seen how to resolve the problem = and I have=20 done it manually but I don't know how to make a patch file to include in = the=20 ports of FreeBSD. So here is the thing to do :
 
In the decompressed archive for php, we = must change=20 in ext/gd/gd.c the following line :
 
# if HAVE_LIBGD20 & HAVE_LIBFREETYPE
 
to
 
# if HAVE_LIBFREETYPE
And then it should work.
 
If you want, you can see the complete = thread=20 concerning this bug here : http://www.p= hp.net/bugs.php?id=3D12065&edit=3D1
 
 
Regards,
Florent = CHANTRET
------=_NextPart_000_00FA_01C1354F.2EBEA8A0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message