Edit report at http://bugs.php.net/bug.php?id=51207&edit=1
ID: 51207
User updated by: penkert at yahoo dot com
Reported by: penkert at yahoo dot com
Summary: imageTTFText: misalignment of characters which extend
beyond their left margin
Status: Open
Type: Bug
Package: GD related
Operating System: Linux & Windows XP
PHP Version: 5.2.13
New Comment:
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?
Previous Comments:
------------------------------------------------------------------------
[2010-03-15 10:54:18] kakketaf at hotmail dot com
Same problem here with the font Francisco lucas liana
(http://www.dafont.com/francisco-lucas.font).
Problem occurred when webhost upgraded to 5.2.13.
I'm using imageTTFText to create dynamic headings for news items. This
got pretty messy :-(
------------------------------------------------------------------------
[2010-03-12 22:18:59] dbrow75 at yahoo dot com
Hi,
both paid fonts as well.
HMSNMW__.TTF (HM Snowflake MonogramsWhite)and vinemsb_.ttf (Vine
Monograms Solid Bold) were both affected.
Both are from Harold's Fonts which can be found at
http://www.fontbros.com/cgi-bin/commerce.cgi?search=action&category=1210
------------------------------------------------------------------------
[2010-03-12 16:24:08] penkert at yahoo dot com
Any chance you could provide the font you're using to the PHP team?
We're using the commercial font Pirouette Text by Linotype which I
obviously can't just hand out freely. Of course, this makes it very
difficult for a third party to reproduce my bug. Hence, another
reproducibly bug scenario would probably be immensely helpful...
------------------------------------------------------------------------
[2010-03-11 15:51:25] dbrow75 at yahoo dot com
sorry flipped flopped FreeType versions, should be
http://tools.sorellajewelry.com/broken.png (5.2.13, FreeType 2.2.1)
http://tools.sorellajewelry.com/Correct.png (5.2.9, FreeType 2.1.9)
------------------------------------------------------------------------
[2010-03-11 15:29:16] dbrow75 at yahoo dot com
Example of broken image and correct image, same underlying code only
difference is PHP version (and GD library FreeType which got upgraded in
PHP upgrade)
http://tools.sorellajewelry.com/broken.png (5.2.13, FreeType 2.1.9)
http://tools.sorellajewelry.com/Correct.png (5.2.9, FreeType 2.2.1)
------------------------------------------------------------------------
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