Bug #75656 [ReO->Fbk]: imagettfbbox fails to find my font
| From: | ab@php.net | Date: | Mon, 08 Jan 2018 12:00:16 +0000 |
| Subject: | Bug #75656 [ReO->Fbk]: imagettfbbox fails to find my font | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-213423@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75656&edit=1
ID: 75656
Updated by: ab@php.net
Reported by: momchil at bojinov dot info
Summary: imagettfbbox fails to find my font
-Status: Re-Opened
+Status: Feedback
Type: Bug
Package: GD related
Operating System: Windows
PHP Version: 7.1.12
Block user comment: N
Private report: N
New Comment:
I was checking this and 7.1.12 NTS reproduces it with Christoph's code. However the current 7.1
tree doesn't reproduce it - same freetype version. Something must have changed. Could one
please test a latest snapshot?
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2018-01-07 18:15:37] cmb@php.net
Related To: Bug #75773
------------------------------------------------------------------------
[2017-12-19 15:49:09] cmb@php.net
Well, the most trivial reproduce script:
<?php
var_dump((bool) imagettfbbox(12, 0, 'arial', 'foo'));
This is supposed to print
bool(true)
but may print
bool(false)
I have not been able to reproduce bool(false) with a self-built
PHP, and debugging with the official php-7.1.12-nts-Win32-VC14-x64
shows erratic behavior, so I'm at a loss.
------------------------------------------------------------------------
[2017-12-19 11:38:31] cmb@php.net
Obviously, this is not a duplicate, since the error message is
different. And indeed, I can reproduce the broken behavior with
PHP 7.1.12 (nts), but not with PHP 7.1.11 (nts).
------------------------------------------------------------------------
[2017-12-19 08:42:40] matthew at bossprint dot com
I had same problem
PHP Warning: imagettftext(): Could not find/open font in C:...
Script has not changed since Nov 2016
Font is in same folder as script
Reverted to 7.1.11 and all is working again.
------------------------------------------------------------------------
[2017-12-09 23:45:28] cmb@php.net
This is a duplicate of bug #64823.
------------------------------------------------------------------------
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=75656
--
Edit this bug report at https://bugs.php.net/bug.php?id=75656&edit=1