Bug #75656 [Com]: imagettfbbox fails to find my font

From: Date: Tue, 19 Dec 2017 08:42:43 +0000
Subject: Bug #75656 [Com]: imagettfbbox fails to find my font
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213165@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 Comment by: matthew at bossprint dot com Reported by: momchil at bojinov dot info Summary: imagettfbbox fails to find my font Status: Duplicate Type: Bug Package: GD related Operating System: Windows PHP Version: 7.1.12 Assigned To: cmb Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2017-12-09 23:45:28] cmb@php.net This is a duplicate of bug #64823. ------------------------------------------------------------------------ [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

« previous php.bugs (#213165) next »