Edit report at http://bugs.php.net/bug.php?id=51207&edit=1

 ID:               51207
 Updated by:       paj...@php.net
 Reported by:      penkert at yahoo dot com
 Summary:          imageTTFText: misalignment of characters which extend
                   beyond their left margin
-Status:           Open
+Status:           Feedback
 Type:             Bug
 Package:          GD related
 Operating System: Linux & Windows XP
 PHP Version:      5.2.13

 New Comment:

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




Previous Comments:
------------------------------------------------------------------------
[2010-04-08 09:59:31] helice at gmx dot net

The issue exists since php 5.2.13 and 5.3.2.



It is even worse when angle is other than 0.



For me there is high priority as I'm not the administrator of my
webserver.

------------------------------------------------------------------------
[2010-03-29 17:25:42] penkert at yahoo dot com

It seems there are no snapshots for Windows available at this time but
I'll be happy to check back later. (I need Windows binaries for my
testbed.) Thanks for your help!

------------------------------------------------------------------------
[2010-03-29 10:39:00] paj...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



------------------------------------------------------------------------
[2010-03-29 05:11:52] penkert at yahoo dot com

As promised, here're the results for PHP 5.2.11.



PHP 5.2.11 "Information":

http://mitglieder.hrc1880.de/penkert/php5_2_11_information.gif



PHP 5.2.11 "Inf":

http://mitglieder.hrc1880.de/penkert/php5_2_11_inf.gif



PHP 5.2.11 "formation":

http://mitglieder.hrc1880.de/penkert/php5_2_11_formation.gif



PHP 5.2.11 "f":

http://mitglieder.hrc1880.de/penkert/php5_2_11_f.gif

------------------------------------------------------------------------
[2010-03-29 05:10:50] penkert at yahoo dot com

How can I make sure the font I'm using (Linotype Pirouette Text) is 100%
standards compliant? Since it's a commercial font I always assumed it's
all right, but I guess you never know. I can only say it's been working
flawlessly in any other program I used so far.



I'm asking this question because I just did a little more testing and
ran the above script with different fragments of the word "Information"
(and a different background color). I was surprised to find that PHP
5.2.11 isn't handling the font perfectly either. (I just never noticed
this before for lack of problematic words.) Here are the results of my
testing:



PHP 5.2.13 "Information":

http://mitglieder.hrc1880.de/penkert/php5_2_13_information.gif



PHP 5.2.13 "Inf":

http://mitglieder.hrc1880.de/penkert/php5_2_13_inf.gif



PHP 5.2.13 "formation":

http://mitglieder.hrc1880.de/penkert/php5_2_13_formation.gif



PHP 5.2.13 "f":

http://mitglieder.hrc1880.de/penkert/php5_2_13_f.gif



(I'll have to put the result links for PHP 5.2.11 in a different post
due to your spam protection being a little bit too picky...)



As you can see in my script, the generated image is automatically sized
by the output of the imageTTFBox function. In all of these cases the
calculated dimensions are exactly what they should be. However, positing
in imageTTFBox isn't working correctly either----with varying results
between the two PHP versions.



Is there anything else I can do to help?

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=51207


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51207&edit=1

Reply via email to