Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Sep 2001 14:37:54 +0200
From:      "Florent CHANTRET" <fchantret@tycco.fr>
To:        <dirk@FreeBSD.org>
Cc:        <ports@FreeBSD.org>
Subject:   FreeBSD Port: php4-4.0.6_1
Message-ID:  <010101c1353e$6d6fea20$0300a8c0@florent>

next in thread | raw e-mail | index | archive | help
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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4616.200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>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</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>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 <STRONG>gdtestft </STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>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.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>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 :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>In the decompressed archive for php, we =
must change=20
in ext/gd/gd.c the following line :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV># if HAVE_LIBGD20 &amp; HAVE_LIBFREETYPE</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>to</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV># if HAVE_LIBFREETYPE<BR></DIV><FONT face=3DArial size=3D2></FONT>
<DIV><FONT face=3DArial size=3D2>And then it should work.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If you want, you can see the complete =
thread=20
concerning this bug here : <A=20
href=3D"http://www.php.net/bugs.php?id=3D12065&amp;edit=3D1">http://www.p=
hp.net/bugs.php?id=3D12065&amp;edit=3D1</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Florent =
CHANTRET</FONT></DIV></BODY></HTML>

------=_NextPart_000_00FA_01C1354F.2EBEA8A0--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?010101c1353e$6d6fea20$0300a8c0>