Bug #75656 [Opn->Dup]: imagettfbbox fails to find my font
| From: | cmb@php.net | Date: | Sat, 09 Dec 2017 23:45:29 +0000 |
| Subject: | Bug #75656 [Opn->Dup]: imagettfbbox fails to find my font | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-213037@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: cmb@php.net
Reported by: momchil at bojinov dot info
Summary: imagettfbbox fails to find my font
-Status: Open
+Status: Duplicate
Type: Bug
Package: GD related
Operating System: Windows
PHP Version: 7.1.12
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This is a duplicate of bug #64823.
Previous Comments:
------------------------------------------------------------------------
[2017-12-08 19:04:25] momchil at bojinov dot info
Description:
------------
Hello,
I have a small repo here:
https://github.com/bozhinov/pChart2.0-for-PHP7
I tested all of the code with PHP 7.1.11 x64 TS on a Windows 10 x64 machine
and all was fine
I then updated the php distribution to 7.1.12 x64 TS and started getting warnings:
arning: imagettftext(): Could not find/open font in X:\SVN\External\pChart-dev\pChart\pDraw.php on
line 1117
I can solve it by calling the function with realpath($ttfpath) instead
The process monitor says that it finds the font OK but then starts looking at the Windows fonts
folder and fails because these fonts are not there
Please fix
Momchil
Test script:
---------------
To induce it, download the release 2.2.0
please PHP distribution in the root folder and call any of the examples
e.g.
php.exe examples\example.cache.php
Expected result:
----------------
Nothing
Actual result:
--------------
Warning: imagettfbbox(): Could not find/open font in X:\SVN\External\pChart-dev\pChart\pDraw.php on
line 4878
Warning: imagettftext(): Could not find/open font in X:\SVN\External\pChart-dev\pChart\pDraw.php on
line 1117
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75656&edit=1