php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21731 imagettfbbox() and imagettftext() don't work
Submitted: 2003-01-18 13:04 UTC Modified: 2003-02-04 16:50 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: phpalv at reguly dot net Assigned:
Status: No Feedback Package: GD related
PHP Version: 4.3.0 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: phpalv at reguly dot net
New email:
PHP Version: OS:

 

 [2003-01-18 13:04 UTC] phpalv at reguly dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-18 13:15 UTC] iliaa@php.net
Please supply working examples, the provided URLs cannot be accessed.
 [2003-01-18 16:03 UTC] phpalv at reguly dot 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 20:52 UTC] phpalv at reguly dot 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-19 17:57 UTC] iliaa@php.net
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
 [2003-02-04 16:50 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 13:01:30 2024 UTC