Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Sep 2001 13:27:47 +0200
From:      "Florent CHANTRET" <fchantret@tycco.fr>
To:        <dirk@FreeBSD.org>
Cc:        <ports@FreeBSD.org>
Subject:   Fw: FreeBSD Port: php4-4.0.6_1
Message-ID:  <003c01c139eb$9eebdd00$0300a8c0@florent>

next in thread | raw e-mail | index | archive | help
C'est un message de format MIME en plusieurs parties.

------=_NextPart_000_0038_01C139FC.61A4D9E0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_0039_01C139FC.61A66080"


------=_NextPart_001_0039_01C139FC.61A66080
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I've seen that the patch is not still available on the ports library of =
FreeBSD, so here it is cause now, I know how to make a patch.

Good idea to include it on the ports library cause actually, PHP doesn't =
recognize the function ImageStringTTF to use the true type fonts.

The patch must be placed in /usr/ports/www/mod_php4/files

Regards,
Florent CHANTRET


----- Original Message -----=20
From: Florent CHANTRET=20
To: dirk@FreeBSD.org=20
Cc: ports@FreeBSD.org=20
Sent: Tuesday, September 04, 2001 2:37 PM
Subject: FreeBSD Port: php4-4.0.6_1


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_001_0039_01C139FC.61A66080
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,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I've seen that the patch is not still =
available on=20
the ports library of FreeBSD, so here it is cause now, I know how to =
make a=20
patch.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Good idea to include it on the ports =
library cause=20
actually, PHP doesn't recognize the function ImageStringTTF to use the =
true type=20
fonts.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The patch must be placed in=20
/usr/ports/www/mod_php4/files</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Florent CHANTRET</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV style=3D"FONT: 10pt arial">----- Original Message -----=20
<DIV style=3D"BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A=20
title=3Dfchantret@tycco.fr href=3D"mailto:fchantret@tycco.fr">Florent =
CHANTRET</A>=20
</DIV>
<DIV><B>To:</B> <A title=3Ddirk@FreeBSD.org=20
href=3D"mailto:dirk@FreeBSD.org">dirk@FreeBSD.org</A> </DIV>
<DIV><B>Cc:</B> <A title=3Dports@FreeBSD.org=20
href=3D"mailto:ports@FreeBSD.org">ports@FreeBSD.org</A> </DIV>
<DIV><B>Sent:</B> Tuesday, September 04, 2001 2:37 PM</DIV>
<DIV><B>Subject:</B> FreeBSD Port: php4-4.0.6_1</DIV></DIV>
<DIV><BR></DIV>
<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_001_0039_01C139FC.61A66080--

------=_NextPart_000_0038_01C139FC.61A4D9E0
Content-Type: application/octet-stream;
	name="patch-ab"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="patch-ab"

--- ext/gd/gdbsd.c	Sun Sep  9 13:04:53 2001=0A=
+++ ext/gd/gd.c	Sun Sep  9 13:05:21 2001=0A=
@@ -2665,7 +2665,7 @@=0A=
 	fontname =3D (unsigned char *) Z_STRVAL_PP(FONTNAME);=0A=
 =0A=
 #ifdef USE_GD_IMGSTRTTF=0A=
-# if HAVE_LIBGD20 & HAVE_LIBFREETYPE=0A=
+# if HAVE_LIBFREETYPE=0A=
 	error =3D gdImageStringFT(im, brect, col, fontname, ptsize, angle, x, =
y, str);=0A=
 # else=0A=
 	error =3D gdImageStringTTF(im, brect, col, fontname, ptsize, angle, x, =
y, str);=0A=

------=_NextPart_000_0038_01C139FC.61A4D9E0--


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?003c01c139eb$9eebdd00$0300a8c0>