Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #37279 : Rendered text is chopped off on end.
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 1st June 00:55
php-bugs
External User
 
Posts: 1
Default #37279 : Rendered text is chopped off on end.


From: danb at zu dot com
Operating system: Fedora FC4, Linux 2.6.15
PHP version: 4.4.2
PHP Bug Type: GD related
Bug description: Rendered text is chopped off on end.

Description:
------------
I'm not too sure if this is a php bug or a libgd bug as I upgraded both at
the same time.

This image on the site was generated under PHP-4.3.11, GD-1.8.4, and
FreeType 2.0.3-7. The file is a cached copy.
http://216.94.150.3/dynamic/header.php?text=Goals+and+Targets&color=EB6919
The font rendered to be more like Times New Roman (sans-serif) than
Frutiger 55 Roman however.

The site is now running PHP-4.4.2, GD-2.0.33, and FreeType 2.1.10. If
you change the text being rendered, it consistently cuts off the last 2-3
pixels of text, although it now renders the font more correctly than
before.

The server was compiled with the following config under Apache 1.3.33:
../configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning
--with-mysql --with-zlib
--with-sablot --with-xml --with-mcrypt --with-gd --with-mcal
--enable-track-vars --enable-xslt --
with-iconv-dir=/usr/local --with-xslt-sablot --enable-wddx --with-pspell
--enable-gd-native-ttf --
with-png --with-jpeg --with-jpeg-dir=/usr --with-png-dir=/usr --with-ttf
--with-freetype-dir=/usr
--with-xpm-dir=/usr/X11R6/ --enable-wddx --with-pspell --with-mime-magic
--without-pear --with-cur
l --enable-mbstring


Reproduce code:
---------------
The code being used to generate the code is located here:
http://www.alistapart.com/d/dynatext/heading.php.txt

No code below the $cache_folder definition has been modified.

For some reason our code file is called header.php rather than
heading.php.


--
Edit bug report at http://bugs.php.net/?id=37279&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37279&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37279&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37279&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37279&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37279&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37279&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37279&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37279&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37279&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37279&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37279&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37279&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37279&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37279&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37279&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37279&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37279&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37279&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37279&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37279&r=mysqlcfg
  Reply With Quote


  sponsored links


2 1st June 00:57
php-bugs
External User
 
Posts: 1
Default #37279 : Rendered text is chopped off on end.


From: danb at zu dot com
Operating system: Fedora FC4, Linux 2.6.15
PHP version: 4.4.2
PHP Bug Type: GD related
Bug description: Rendered text is chopped off on end.

Description:
------------
I'm not too sure if this is a php bug or a libgd bug as I upgraded both at
the same time.

This image on the site was generated under PHP-4.3.11, GD-1.8.4, and
FreeType 2.0.3-7. The file is a cached copy.
http://216.94.150.3/dynamic/header.php?text=Goals+and+Targets&color=EB6919
The font rendered to be more like Times New Roman (sans-serif) than
Frutiger 55 Roman however.

The site is now running PHP-4.4.2, GD-2.0.33, and FreeType 2.1.10. If
you change the text being rendered, it consistently cuts off the last 2-3
pixels of text, although it now renders the font more correctly than
before.

The server was compiled with the following config under Apache 1.3.33:
../configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning
--with-mysql --with-zlib
--with-sablot --with-xml --with-mcrypt --with-gd --with-mcal
--enable-track-vars --enable-xslt --
with-iconv-dir=/usr/local --with-xslt-sablot --enable-wddx --with-pspell
--enable-gd-native-ttf --
with-png --with-jpeg --with-jpeg-dir=/usr --with-png-dir=/usr --with-ttf
--with-freetype-dir=/usr
--with-xpm-dir=/usr/X11R6/ --enable-wddx --with-pspell --with-mime-magic
--without-pear --with-cur
l --enable-mbstring


Reproduce code:
---------------
The code being used to generate the code is located here:
http://www.alistapart.com/d/dynatext/heading.php.txt

No code below the $cache_folder definition has been modified.

For some reason our code file is called header.php rather than
heading.php.


--
Edit bug report at http://bugs.php.net/?id=37279&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37279&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37279&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37279&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37279&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37279&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37279&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37279&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37279&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37279&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37279&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37279&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37279&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37279&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37279&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37279&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37279&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37279&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37279&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37279&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37279&r=mysqlcfg
  Reply With Quote
3 1st June 04:16
External User
 
Posts: 1
Default #37279 : Rendered text is chopped off on end.


ID: 37279
Updated by: tony2001@php.net
Reported By: danb at zu dot com
-Status: Open
+Status: Assigned
Bug Type: GD related
Operating System: Fedora FC4, Linux 2.6.15
PHP Version: 4.4.2
-Assigned To:
+Assigned To: pajoye


Previous Comments:
------------------------------------------------------------------------

[2006-05-02 18:18:37] danb at zu dot com

Description:
------------
I'm not too sure if this is a php bug or a libgd bug as I upgraded both
at the same time.

This image on the site was generated under PHP-4.3.11, GD-1.8.4, and
FreeType 2.0.3-7. The file is a cached copy.
http://216.94.150.3/dynamic/header.php?text=Goals+and+Targets&color=EB6919
The font rendered to be more like Times New Roman (sans-serif) than
Frutiger 55 Roman however.

The site is now running PHP-4.4.2, GD-2.0.33, and FreeType 2.1.10. If
you change the text being rendered, it consistently cuts off the last
2-3 pixels of text, although it now renders the font more correctly
than before.

The server was compiled with the following config under Apache 1.3.33:
../configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning
--with-mysql --with-zlib
--with-sablot --with-xml --with-mcrypt --with-gd --with-mcal
--enable-track-vars --enable-xslt --
with-iconv-dir=/usr/local --with-xslt-sablot --enable-wddx
--with-pspell --enable-gd-native-ttf --
with-png --with-jpeg --with-jpeg-dir=/usr --with-png-dir=/usr
--with-ttf --with-freetype-dir=/usr
--with-xpm-dir=/usr/X11R6/ --enable-wddx --with-pspell
--with-mime-magic --without-pear --with-cur
l --enable-mbstring


Reproduce code:
---------------
The code being used to generate the code is located here:
http://www.alistapart.com/d/dynatext/heading.php.txt

No code below the $cache_folder definition has been modified.

For some reason our code file is called header.php rather than
heading.php.

------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=37279&edit=1
  Reply With Quote
4 1st June 04:16
External User
 
Posts: 1
Default #37279 : Rendered text is chopped off on end.


ID: 37279
Updated by: pajoye@php.net
Reported By: danb at zu dot com
-Status: Assigned
+Status: Feedback
Bug Type: GD related
Operating System: Fedora FC4, Linux 2.6.15
PHP Version: 4.4.2
Assigned To: pajoye
New Comment:

You configure php using "--with-gd", that means you use the bundled
library. If something else is shown, you have mixed your system headers
while building. Please verify your setup.

Also we need a short script with only the GD functions and a link to
the TTF font you use, no function, html, etc..


Previous Comments:
------------------------------------------------------------------------

[2006-05-02 18:18:37] danb at zu dot com

Description:
------------
I'm not too sure if this is a php bug or a libgd bug as I upgraded both
at the same time.

This image on the site was generated under PHP-4.3.11, GD-1.8.4, and
FreeType 2.0.3-7. The file is a cached copy.
http://216.94.150.3/dynamic/header.php?text=Goals+and+Targets&color=EB6919
The font rendered to be more like Times New Roman (sans-serif) than
Frutiger 55 Roman however.

The site is now running PHP-4.4.2, GD-2.0.33, and FreeType 2.1.10. If
you change the text being rendered, it consistently cuts off the last
2-3 pixels of text, although it now renders the font more correctly
than before.

The server was compiled with the following config under Apache 1.3.33:
../configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning
--with-mysql --with-zlib
--with-sablot --with-xml --with-mcrypt --with-gd --with-mcal
--enable-track-vars --enable-xslt --
with-iconv-dir=/usr/local --with-xslt-sablot --enable-wddx
--with-pspell --enable-gd-native-ttf --
with-png --with-jpeg --with-jpeg-dir=/usr --with-png-dir=/usr
--with-ttf --with-freetype-dir=/usr
--with-xpm-dir=/usr/X11R6/ --enable-wddx --with-pspell
--with-mime-magic --without-pear --with-cur
l --enable-mbstring


Reproduce code:
---------------
The code being used to generate the code is located here:
http://www.alistapart.com/d/dynatext/heading.php.txt

No code below the $cache_folder definition has been modified.

For some reason our code file is called header.php rather than
heading.php.

------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=37279&edit=1
  Reply With Quote
5 1st June 04:17
External User
 
Posts: 1
Default #37279 : Rendered text is chopped off on end.


ID: 37279
Updated by: tony2001@php.net
Reported By: danb at zu dot com
-Status: Open
+Status: Assigned
Bug Type: GD related
Operating System: Fedora FC4, Linux 2.6.15
PHP Version: 4.4.2
-Assigned To:
+Assigned To: pajoye


Previous Comments:
------------------------------------------------------------------------

[2006-05-02 18:18:37] danb at zu dot com

Description:
------------
I'm not too sure if this is a php bug or a libgd bug as I upgraded both
at the same time.

This image on the site was generated under PHP-4.3.11, GD-1.8.4, and
FreeType 2.0.3-7. The file is a cached copy.
http://216.94.150.3/dynamic/header.php?text=Goals+and+Targets&color=EB6919
The font rendered to be more like Times New Roman (sans-serif) than
Frutiger 55 Roman however.

The site is now running PHP-4.4.2, GD-2.0.33, and FreeType 2.1.10. If
you change the text being rendered, it consistently cuts off the last
2-3 pixels of text, although it now renders the font more correctly
than before.

The server was compiled with the following config under Apache 1.3.33:
../configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning
--with-mysql --with-zlib
--with-sablot --with-xml --with-mcrypt --with-gd --with-mcal
--enable-track-vars --enable-xslt --
with-iconv-dir=/usr/local --with-xslt-sablot --enable-wddx
--with-pspell --enable-gd-native-ttf --
with-png --with-jpeg --with-jpeg-dir=/usr --with-png-dir=/usr
--with-ttf --with-freetype-dir=/usr
--with-xpm-dir=/usr/X11R6/ --enable-wddx --with-pspell
--with-mime-magic --without-pear --with-cur
l --enable-mbstring


Reproduce code:
---------------
The code being used to generate the code is located here:
http://www.alistapart.com/d/dynatext/heading.php.txt

No code below the $cache_folder definition has been modified.

For some reason our code file is called header.php rather than
heading.php.

------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=37279&edit=1
  Reply With Quote
6 1st June 04:17
External User
 
Posts: 1
Default #37279 : Rendered text is chopped off on end.


ID: 37279
Updated by: pajoye@php.net
Reported By: danb at zu dot com
-Status: Assigned
+Status: Feedback
Bug Type: GD related
Operating System: Fedora FC4, Linux 2.6.15
PHP Version: 4.4.2
Assigned To: pajoye
New Comment:

You configure php using "--with-gd", that means you use the bundled
library. If something else is shown, you have mixed your system headers
while building. Please verify your setup.

Also we need a short script with only the GD functions and a link to
the TTF font you use, no function, html, etc..


Previous Comments:
------------------------------------------------------------------------

[2006-05-02 18:18:37] danb at zu dot com

Description:
------------
I'm not too sure if this is a php bug or a libgd bug as I upgraded both
at the same time.

This image on the site was generated under PHP-4.3.11, GD-1.8.4, and
FreeType 2.0.3-7. The file is a cached copy.
http://216.94.150.3/dynamic/header.php?text=Goals+and+Targets&color=EB6919
The font rendered to be more like Times New Roman (sans-serif) than
Frutiger 55 Roman however.

The site is now running PHP-4.4.2, GD-2.0.33, and FreeType 2.1.10. If
you change the text being rendered, it consistently cuts off the last
2-3 pixels of text, although it now renders the font more correctly
than before.

The server was compiled with the following config under Apache 1.3.33:
../configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning
--with-mysql --with-zlib
--with-sablot --with-xml --with-mcrypt --with-gd --with-mcal
--enable-track-vars --enable-xslt --
with-iconv-dir=/usr/local --with-xslt-sablot --enable-wddx
--with-pspell --enable-gd-native-ttf --
with-png --with-jpeg --with-jpeg-dir=/usr --with-png-dir=/usr
--with-ttf --with-freetype-dir=/usr
--with-xpm-dir=/usr/X11R6/ --enable-wddx --with-pspell
--with-mime-magic --without-pear --with-cur
l --enable-mbstring


Reproduce code:
---------------
The code being used to generate the code is located here:
http://www.alistapart.com/d/dynatext/heading.php.txt

No code below the $cache_folder definition has been modified.

For some reason our code file is called header.php rather than
heading.php.

------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=37279&edit=1
  Reply With Quote
7 1st June 07:27
php-bugs
External User
 
Posts: 1
Default #37279 : Rendered text is chopped off on end.


ID: 37279
Comment by: dcmbrown at shaw dot ca
Reported By: danb at zu dot com
Status: Feedback
Bug Type: GD related
Operating System: Fedora FC4, Linux 2.6.15
PHP Version: 4.4.2
Assigned To: pajoye
New Comment:

test.


Previous Comments:
------------------------------------------------------------------------

[2006-05-03 10:51:01] pajoye@php.net

You configure php using "--with-gd", that means you use the bundled
library. If something else is shown, you have mixed your system headers
while building. Please verify your setup.

Also we need a short script with only the GD functions and a link to
the TTF font you use, no function, html, etc..

------------------------------------------------------------------------

[2006-05-02 18:18:37] danb at zu dot com

Description:
------------
I'm not too sure if this is a php bug or a libgd bug as I upgraded both
at the same time.

This image on the site was generated under PHP-4.3.11, GD-1.8.4, and
FreeType 2.0.3-7. The file is a cached copy.
http://216.94.150.3/dynamic/header.php?text=Goals+and+Targets&color=EB6919
The font rendered to be more like Times New Roman (sans-serif) than
Frutiger 55 Roman however.

The site is now running PHP-4.4.2, GD-2.0.33, and FreeType 2.1.10. If
you change the text being rendered, it consistently cuts off the last
2-3 pixels of text, although it now renders the font more correctly
than before.

The server was compiled with the following config under Apache 1.3.33:
../configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning
--with-mysql --with-zlib
--with-sablot --with-xml --with-mcrypt --with-gd --with-mcal
--enable-track-vars --enable-xslt --
with-iconv-dir=/usr/local --with-xslt-sablot --enable-wddx
--with-pspell --enable-gd-native-ttf --
with-png --with-jpeg --with-jpeg-dir=/usr --with-png-dir=/usr
--with-ttf --with-freetype-dir=/usr
--with-xpm-dir=/usr/X11R6/ --enable-wddx --with-pspell
--with-mime-magic --without-pear --with-cur
l --enable-mbstring


Reproduce code:
---------------
The code being used to generate the code is located here:
http://www.alistapart.com/d/dynatext/heading.php.txt

No code below the $cache_folder definition has been modified.

For some reason our code file is called header.php rather than
heading.php.

------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=37279&edit=1
  Reply With Quote
8 1st June 07:27
php-bugs
External User
 
Posts: 1
Default #37279 : Rendered text is chopped off on end.


ID: 37279
User updated by: danb at zu dot com
Reported By: danb at zu dot com
-Status: Feedback
+Status: Open
Bug Type: GD related
Operating System: Fedora FC4, Linux 2.6.15
PHP Version: 4.4.2
Assigned To: pajoye
New Comment:

Hmm... the add comment section loses your comment if you have the same
email address as the poster. That's nice. :P

Anyways, I wasn't aware there was a bundled gd library in PHP now. I
haven't been to the main http://www.php.net/manual/en/ref.image.php
page in a long time and hadn't noticed the note about it. The
--with-gd option has been used as long as I've compiled it and it's
always worked. Specifying where libgd was with --with-gd=/usr fixed
the chopped off text problem.

You can bogify this bug report.


Previous Comments:
------------------------------------------------------------------------

[2006-05-03 17:07:55] dcmbrown at shaw dot ca

test.

------------------------------------------------------------------------

[2006-05-03 10:51:01] pajoye@php.net

You configure php using "--with-gd", that means you use the bundled
library. If something else is shown, you have mixed your system headers
while building. Please verify your setup.

Also we need a short script with only the GD functions and a link to
the TTF font you use, no function, html, etc..

------------------------------------------------------------------------

[2006-05-02 18:18:37] danb at zu dot com

Description:
------------
I'm not too sure if this is a php bug or a libgd bug as I upgraded both
at the same time.

This image on the site was generated under PHP-4.3.11, GD-1.8.4, and
FreeType 2.0.3-7. The file is a cached copy.
http://216.94.150.3/dynamic/header.php?text=Goals+and+Targets&color=EB6919
The font rendered to be more like Times New Roman (sans-serif) than
Frutiger 55 Roman however.

The site is now running PHP-4.4.2, GD-2.0.33, and FreeType 2.1.10. If
you change the text being rendered, it consistently cuts off the last
2-3 pixels of text, although it now renders the font more correctly
than before.

The server was compiled with the following config under Apache 1.3.33:
../configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning
--with-mysql --with-zlib
--with-sablot --with-xml --with-mcrypt --with-gd --with-mcal
--enable-track-vars --enable-xslt --
with-iconv-dir=/usr/local --with-xslt-sablot --enable-wddx
--with-pspell --enable-gd-native-ttf --
with-png --with-jpeg --with-jpeg-dir=/usr --with-png-dir=/usr
--with-ttf --with-freetype-dir=/usr
--with-xpm-dir=/usr/X11R6/ --enable-wddx --with-pspell
--with-mime-magic --without-pear --with-cur
l --enable-mbstring


Reproduce code:
---------------
The code being used to generate the code is located here:
http://www.alistapart.com/d/dynatext/heading.php.txt

No code below the $cache_folder definition has been modified.

For some reason our code file is called header.php rather than
heading.php.

------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=37279&edit=1
  Reply With Quote
9 1st June 07:27
External User
 
Posts: 1
Default #37279 : Rendered text is chopped off on end.


ID: 37279
Updated by: bjori@php.net
Reported By: danb at zu dot com
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: Fedora FC4, Linux 2.6.15
PHP Version: 4.4.2
Assigned To: pajoye
New Comment:

..


Previous Comments:
------------------------------------------------------------------------

[2006-05-03 17:12:44] danb at zu dot com

Hmm... the add comment section loses your comment if you have the same
email address as the poster. That's nice. :P

Anyways, I wasn't aware there was a bundled gd library in PHP now. I
haven't been to the main http://www.php.net/manual/en/ref.image.php
page in a long time and hadn't noticed the note about it. The
--with-gd option has been used as long as I've compiled it and it's
always worked. Specifying where libgd was with --with-gd=/usr fixed
the chopped off text problem.

You can bogify this bug report.

------------------------------------------------------------------------

[2006-05-03 17:07:55] dcmbrown at shaw dot ca

test.

------------------------------------------------------------------------

[2006-05-03 10:51:01] pajoye@php.net

You configure php using "--with-gd", that means you use the bundled
library. If something else is shown, you have mixed your system headers
while building. Please verify your setup.

Also we need a short script with only the GD functions and a link to
the TTF font you use, no function, html, etc..

------------------------------------------------------------------------

[2006-05-02 18:18:37] danb at zu dot com

Description:
------------
I'm not too sure if this is a php bug or a libgd bug as I upgraded both
at the same time.

This image on the site was generated under PHP-4.3.11, GD-1.8.4, and
FreeType 2.0.3-7. The file is a cached copy.
http://216.94.150.3/dynamic/header.php?text=Goals+and+Targets&color=EB6919
The font rendered to be more like Times New Roman (sans-serif) than
Frutiger 55 Roman however.

The site is now running PHP-4.4.2, GD-2.0.33, and FreeType 2.1.10. If
you change the text being rendered, it consistently cuts off the last
2-3 pixels of text, although it now renders the font more correctly
than before.

The server was compiled with the following config under Apache 1.3.33:
../configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning
--with-mysql --with-zlib
--with-sablot --with-xml --with-mcrypt --with-gd --with-mcal
--enable-track-vars --enable-xslt --
with-iconv-dir=/usr/local --with-xslt-sablot --enable-wddx
--with-pspell --enable-gd-native-ttf --
with-png --with-jpeg --with-jpeg-dir=/usr --with-png-dir=/usr
--with-ttf --with-freetype-dir=/usr
--with-xpm-dir=/usr/X11R6/ --enable-wddx --with-pspell
--with-mime-magic --without-pear --with-cur
l --enable-mbstring


Reproduce code:
---------------
The code being used to generate the code is located here:
http://www.alistapart.com/d/dynatext/heading.php.txt

No code below the $cache_folder definition has been modified.

For some reason our code file is called header.php rather than
heading.php.

------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=37279&edit=1
  Reply With Quote
10 1st June 07:27
php-bugs
External User
 
Posts: 1
Default #37279 : Rendered text is chopped off on end.


ID: 37279
Comment by: dcmbrown at shaw dot ca
Reported By: danb at zu dot com
Status: Feedback
Bug Type: GD related
Operating System: Fedora FC4, Linux 2.6.15
PHP Version: 4.4.2
Assigned To: pajoye
New Comment:

test.


Previous Comments:
------------------------------------------------------------------------

[2006-05-03 10:51:01] pajoye@php.net

You configure php using "--with-gd", that means you use the bundled
library. If something else is shown, you have mixed your system headers
while building. Please verify your setup.

Also we need a short script with only the GD functions and a link to
the TTF font you use, no function, html, etc..

------------------------------------------------------------------------

[2006-05-02 18:18:37] danb at zu dot com

Description:
------------
I'm not too sure if this is a php bug or a libgd bug as I upgraded both
at the same time.

This image on the site was generated under PHP-4.3.11, GD-1.8.4, and
FreeType 2.0.3-7. The file is a cached copy.
http://216.94.150.3/dynamic/header.php?text=Goals+and+Targets&color=EB6919
The font rendered to be more like Times New Roman (sans-serif) than
Frutiger 55 Roman however.

The site is now running PHP-4.4.2, GD-2.0.33, and FreeType 2.1.10. If
you change the text being rendered, it consistently cuts off the last
2-3 pixels of text, although it now renders the font more correctly
than before.

The server was compiled with the following config under Apache 1.3.33:
../configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning
--with-mysql --with-zlib
--with-sablot --with-xml --with-mcrypt --with-gd --with-mcal
--enable-track-vars --enable-xslt --
with-iconv-dir=/usr/local --with-xslt-sablot --enable-wddx
--with-pspell --enable-gd-native-ttf --
with-png --with-jpeg --with-jpeg-dir=/usr --with-png-dir=/usr
--with-ttf --with-freetype-dir=/usr
--with-xpm-dir=/usr/X11R6/ --enable-wddx --with-pspell
--with-mime-magic --without-pear --with-cur
l --enable-mbstring


Reproduce code:
---------------
The code being used to generate the code is located here:
http://www.alistapart.com/d/dynatext/heading.php.txt

No code below the $cache_folder definition has been modified.

For some reason our code file is called header.php rather than
heading.php.

------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=37279&edit=1
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666