#33484 [NEW]: Rendered Text gets Blocks around characters
| From: | designshoe at gmx dot net | Date: | Mon, 27 Jun 2005 05:08:05 +0000 |
| Subject: | #33484 [NEW]: Rendered Text gets Blocks around characters | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-81054@lists.php.net to get a copy of this message | ||
From: designshoe at gmx dot net
Operating system: linux
PHP version: 4.3.10
PHP Bug Type: *Graphics related
Bug description: Rendered Text gets Blocks around characters
Description:
------------
I have been playing around with a class that would render a given text
using any font (truetype, type1) on a canvas.
I developed on an box that has PHP 4.3.8 installed. I have tested it on
PHP 4.3.9 before.
Now that I moved to PHP 4.3.10 on my server the text gets very ugly. And
it is the same on 5.0.3.
See the examples:
http://krapplack.de/php-bug/textimage_php-4.3.8.png
(works)
http://krapplack.de/php-bug/textimage_php-4.3.10.png
(broken)
http://krapplack.de/php-bug/textimage_php-5.0.3.png
(broken)
As you can see, there are some white boxes around some of the characters.
I hope that we will find the source of the problem.
Here are the three different configure lines:
4.3.8
'./configure' '--prefix=/usr' '--datadir=/usr/share/php'
'--mandir=/usr/share/man' '--bindir=/usr/bin' '--libdir=/usr/share'
'--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib'
'--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin'
'--disable-debug' '--enable-inline-optimization'
'--enable-memory-limit'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sigchild'
'--disable-ctype' '--disable-session' '--without-mysql'
'--disable-cli'
'--without-pear' '--with-openssl'
'--with-apxs2=/usr/sbin/apxs2-prefork'
'i586-suse-linux'
4.3.10
'./configure' '--program-prefix=php4-' '--prefix=/usr/local/php4'
'--datadir=/usr/share/php4' '--with-config-file-path=/etc'
'--enable-force-cgi-redirect' '--disable-debug' '--enable-pic'
'--disable-rpath' '--enable-inline-optimization' '--with-bz2=shared'
'--with-dom=shared,/usr' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared'
'--enable-gd-native-ttf' '--with-ttf=shared' '--with-gdbm=shared'
'--with-gettext=shared' '--with-iconv=shared'
'--with-jpeg-dir=shared,/usr' '--with-openssl' '--with-png=shared'
'--with-pspell=shared' '--with-regex=system' '--with-xml=shared'
'--with-expat=shared' '--with-zlib=/usr/local'
'--with-zlib-dir=/usr/local' '--with-layout=GNU'
'--enable-bcmath=shared'
'--enable-exif=shared' '--enable-ftp=shared' '--enable-magic-quotes'
'--enable-safe-mode' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-discard-path' '--enable-track-vars'
'--enable-trans-sid' '--enable-yp' '--enable-wddx'
'--without-oci8'
'--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl'
'--with-kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr'
'--enable-memory-limit' '--enable-shmop' '--enable-versioning'
'--enable-calendar=shared' '--enable-dbx=shared' '--enable-dio=shared'
'--enable-mcal=shared' '--enable-dba=shared' '--enable-dbase=shared'
'--with-ndbm=shared' '--with-ndb=shared' '--with-mcrypt=shared'
'--with-mhash=shared' '--with-ming=shared' '--with-curl=shared,/usr'
'--with-apxs=/usr/local/apache/bin/apxs'
5.0.3-1.dotdeb.0
'../configure' '--disable-cli' '--prefix=/usr'
'--with-regex=php'
'--enable-fastcgi' '--enable-force-cgi-redirect'
'--with-config-file-path=/etc/php5/cgi' '--disable-rpath'
'--enable-memory-limit' '--disable-debug' '--with-layout=GNU'
'--disable-pear' '--enable-calendar' '--enable-sysvsem'
'--enable-sysvshm'
'--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid'
'--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db2'
'--enable-dbx' '--with-iconv' '--enable-exif'
'--enable-filepro'
'--enable-ftp' '--enable-dbase' '--with-gettext'
'--with-mime-magic'
'--enable-mbstring' '--with-pcre-regex' '--enable-shmop'
'--enable-soap'
'--enable-sockets' '--enable-simplexml' '--with-libxml-dir=/usr'
'--with-dom=/usr' '--with-xsl=/usr' '--with-sqlite'
'--enable-sqlite-utf8'
'--enable-tokenizer' '--enable-yp' '--with-zlib'
'--with-zlib-dir=/usr'
'--with-kerberos=/usr' '--with-openssl=/usr'
'--with-exec-dir=/usr/lib/php5/libexec' '--disable-static'
'--without-pear' '--without-mm' '--enable-pcntl'
'--without-mysql'
'--without-sybase-ct'
--
Edit bug report at http://bugs.php.net/?id=33484&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33484&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33484&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33484&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33484&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33484&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33484&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33484&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33484&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33484&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33484&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33484&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33484&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33484&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33484&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33484&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33484&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33484&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33484&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33484&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33484&r=mysqlcfg