ID: 26635 User updated by: choinet at rocketmail dot com Reported By: choinet at rocketmail dot com -Status: Feedback +Status: Open Bug Type: *Graphics related Operating System: Windows XP PHP Version: 4.3.4 New Comment:
I just checked using PHP5 CVS (Built On: Dec 17, 2003 19:30 GMT), and relative paths ('./arial' and 'arial') do work, but only without the '.ttf' file extension. For example, 'arial.ttf' as the fontfile argument does not work. Absolute paths to the fontfile still do not work, neither in the MS-DOS naming convention ('C:\Progra~1\Apache~1\Apache2\htdocs\arial.ttf') nor in the general way ('C:\Program Files\Apache Group\Apache2\htdocs\arial.ttf'). Previous Comments: ------------------------------------------------------------------------ [2003-12-17 11:16:21] [EMAIL PROTECTED] if arial.ttf is inside C:\Program Files\Apache Group\Apache2\htdocs it will try to open it. ------------------------------------------------------------------------ [2003-12-16 23:50:39] choinet at rocketmail dot com er wait, I get C:\Program Files\Apache Group\Apache2\htdocs (without the trailing backslash) ------------------------------------------------------------------------ [2003-12-16 23:49:41] choinet at rocketmail dot com I get C:\Program Files\Apache Group\Apache2\htdocs\ ------------------------------------------------------------------------ [2003-12-16 18:37:27] [EMAIL PROTECTED] if you add echo getcwd(); to your script, what directory does it show? ------------------------------------------------------------------------ [2003-12-16 16:49:08] choinet at rocketmail dot com After checking, I determined that the problem with opening the fontfile in the PHP 5 CVS version of imagettftext() occurs on both Apache 1 and 2 (both sapi modules). ------------------------------------------------------------------------ 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 http://bugs.php.net/26635 -- Edit this bug report at http://bugs.php.net/?id=26635&edit=1