Bug #66083 [Asn->Fbk]: imagettfbox() returns different values

From: Date: Wed, 28 Sep 2016 12:22:40 +0000
Subject: Bug #66083 [Asn->Fbk]: imagettfbox() returns different values
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204319@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
 Updated by:         cmb@php.net
 Reported by:        michael at bigmichi1 dot de
 Summary:            imagettfbox() returns different values
-Status:             Assigned
+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:

> 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.


Previous Comments:
------------------------------------------------------------------------
[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

------------------------------------------------------------------------
[2016-09-27 11:46:45] cmb@php.net

Thanks for testing!

I assume these differences are caused by different libfreetype
versions/configurations. On Windows you're probably using
libfreetype 2.6.2 (or something close to that). Which libfreetype
version do you use on Linux? There are known (but unresolved)
issues with libfreetype 2.5.x-ubuntu.

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


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


Thread (12 messages)

« previous php.bugs (#204319) next »