On Monday 15 December 2003 13:26, cj wrote:

> I have been able to the the image to display, which is a gif image of a
> rectange.
> But the text doesn't get displayed on the image.
>
> There are no error messages on the screen
> The other messages entitled true type fonts is a thread I started as well,
> but the image was not being displayed on the screen at all.
> So now I have the image but no text on the image.
>
> What could be causing this, and what should I have a look at?

If you had read and followed the advice given in response to your earlier 
posts I'm sure you would've solved your problem by now.

Again:

1) Enable FULL error reporting by including these lines at the top of your 
code:

  error_reporting (E_ALL);
  ini_set('display_errors', 1);

2) Output the image to file. Remember to comment out the header() for the time 
being.

3) And someone else suggested that you may have specified the name of your 
font file incorrectly. In my experience you *have* to specify a path to your 
font file. So if the font file was in the same directory as your script then 
use './name_of_font_file'. So if you had followed the above steps (at the 
least step 1) you would have seen the following error:

  PHP Warning:  imagettftext(): Could not find/open font in ...

and would have clued you into what the problem was.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Alone, adj.:
        In bad company.
                -- Ambrose Bierce, "The Devil's Dictionary"
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to