hi everyone....
I've been doing some work on our local dev machine recently using PHP to produce PNGs of text using a TrueType font.
I didn't set up the dev. box (mac OS X), so I don't know exactly whats on there - although I do no for certain that its the most recent stable release of PHP and GD, as well as libPNG.
I'm using functions like :
ImageTTFBbox
ImageTTFText
ImagePNG
to do all this.
It works fine on the Mac box, but when I've uploaded it to our webserver (Solaris), the PNG generation breaks. The image doesnt load, and when I've taken the Header call out of the php page to see any errors, there are no errors reported.
So, I looked into what was on the local dev box that wasnt on the webserver. As far as I can see, it all matches. libPNG and GD are on both, and I can't find any trace of Freetype on the local dev machine.
Now, either I'm just not seeing Freetype on the local machine and it is there, or Freetype isnt required for the TTF functions, and the fault on the server lies elsewhere.
So, can anyone help me out? What is require exactly to produce PNGs with TTF text?
Thanks,
Kerin