 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
compton
Joined: 22 Feb 2008 Posts: 2 Location: UK
|
Posted: Fri Feb 22, 2008 2:31 pm Post subject: Strange Behaviour with Fonts and Image_Graph |
|
|
I'm having a strange problem using Image_Graph. I have managed to get these classes working correctly on my development machine, and it will produce images such as this:
This is one of the test examples, and it appears exactly as it should. I've also created a variety of charts that also work fine.
However, when I run the same code on my deployment server, using the same version of Image_Graph, the text is yellow and a bit smaller than on the test machine:
This is really weird! Every image I create on the deployment server using Image_Graph comes out with this sort of text! It happens if I use different fonts too.
If anyone has any suggestions or pointers that I can try I'd really appreciate it.
thanks a lot |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Fri Feb 22, 2008 3:04 pm Post subject: |
|
|
| Just a guess: Different PHP versions? Different GD versions? |
|
| Back to top |
|
 |
compton
Joined: 22 Feb 2008 Posts: 2 Location: UK
|
Posted: Fri Feb 22, 2008 4:04 pm Post subject: |
|
|
They are different PHP versions it's true - my own machine is running the latest PHP v5, and the live server is on 4.4.2.
As for GD, phpinfo() reports that the live server is bundled (2.0.28 compatible), and my machine is 2.0 or higher.
I have wondered if the different PHP version could be the cause, however the Image_Graph package does state it's compatible with both PHP4 and PHP5. Also there are no bugs reported related to text rendering for the Image_Graph package with PHP 4 (or 5 for that matter!).
It's almost as if there's some default setting somewhere for font colour and size, which is changed on the live machine, but I certainly can't find anything.
Thanks for your thoughts though!  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|