#21731 [Opn->Fbk]: imagettfbbox() and imagettftext() don't work
| From: | iliaa@php.net | Date: | Sun, 19 Jan 2003 23:57:34 +0000 |
| Subject: | #21731 [Opn->Fbk]: imagettfbbox() and imagettftext() don't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-30597@lists.php.net to get a copy of this message | ||
ID: 21731
Updated by: iliaa@php.net
Reported By: phpalv@reguly.net
-Status: Open
+Status: Feedback
Bug Type: GD related
Operating System: Linux
PHP Version: 4.3.0
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
I've tried both relative and full paths for the font files and it had
worked each time. Try using the latest CVS snapshot, it may solve the
problem
Previous Comments:
------------------------------------------------------------------------
[2003-01-18 20:52:26] phpalv@reguly.net
Well I have had the time to google a lot, and found out that
using realpath($fonte) the script work.
See http://bugs.php.net/bug.php?id=6960
------------------------------------------------------------------------
[2003-01-18 16:03:41] phpalv@reguly.net
damn, I don't know why .phps does not work either..
anyway that doesn't bother me you can see the source here
http://www.ditech.com.br/~alvaro/im.txt
the other links work fine
------------------------------------------------------------------------
[2003-01-18 13:15:03] iliaa@php.net
Please supply working examples, the provided URLs cannot be accessed.
------------------------------------------------------------------------
[2003-01-18 13:04:16] phpalv@reguly.net
This is what I get when trying to write a text over a PNG
(tried JPEG too) image.
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open
font in /home/alvaro/html/im.php on line 6
Warning: imagettftext() [function.imagettftext]: Could not find/open
font in /home/alvaro/html/im.php on line 14
file perms are ok.
PHP 4.3 compiled with bundled GD+external jpeg libs with gcc-3.2 on
Debian.
URL is http://www.ditech.com.br/~alvaro/im.php
source is http://www.ditech.com.br/~alvaro/im.phps
PHPinfo: http://www.ditech.com.br/~alvaro/php.php
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21731&edit=1