Bug #66083 [Com]: imagettfbox() returns different values
| From: | michael at bigmichi1 dot de | Date: | Wed, 28 Sep 2016 12:48:27 +0000 |
| Subject: | Bug #66083 [Com]: imagettfbox() returns different values | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-204321@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66083&edit=1
ID: 66083
Comment by: michael at bigmichi1 dot de
Reported by: michael at bigmichi1 dot de
Summary: imagettfbox() returns different values
Status: Feedback
Type: Bug
Package: GD related
Operating System: Ubuntu 13.10 / Win7
PHP Version: 5.5.5
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
with the version you linked to i got the same results like on windows
Previous Comments:
------------------------------------------------------------------------
[2016-09-28 12:22:38] cmb@php.net
> PHP 7.1.0-dev (cli) (built: Sep 26 2016 21:23:33) ( NTS MSVC14
> (Visual C++ 2015) x64 )
> PHP 7.1.0RC1 (cli) (built: Sep 27 2016 13:10:41) ( NTS )
Ah, we're comparing apples and oranges here. :-)
Note that the fix for 53504 is not contained in any QA release of
PHP 7.1 yet; it is scheduled for PHP 7.1.0RC3 only.
Running with current Windows 7.1 snapshots and the current 7.1
head on Linux both produces:
Array
(
[0] => 1
[1] => 0
[2] => 28
[3] => 0
[4] => 28
[5] => -9
[6] => 1
[7] => -9
)
You can download the current 7.1 head via
<https://github.com/php/php-src/archive/PHP-7.1.zip>.
Please try
this one on Linux.
------------------------------------------------------------------------
[2016-09-28 11:51:52] cmb@php.net
Thanks. I'll have a look at it ASAP.
------------------------------------------------------------------------
[2016-09-28 05:06:22] michael at bigmichi1 dot de
font file can be found here:
http://www.dafont.com/de/bitstream-vera-sans.font
reproducer:
<?php
$bounds = imagettfbbox(12, 0, "Vera.ttf", "one");
print_r($bounds);
------------------------------------------------------------------------
[2016-09-27 13:16:35] cmb@php.net
Thanks!
Can you please supply a minimal self-contained reproduce script?
If there is a non-standard font involved, please make this
available for download somewhere, too.
------------------------------------------------------------------------
[2016-09-27 12:10:35] michael at bigmichi1 dot de
linux uses libfreetype 2.6.1
windows uses libfreetype 2.6.2
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=66083
--
Edit this bug report at https://bugs.php.net/bug.php?id=66083&edit=1