and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi to all
We have a script that create a "button" image with gd
This script use our ttf upload online, in script dir
All work great ok for 1 year, now the image created is bad.
Seems they have antialiasing but this is set 0
Correct Image:[url]http://www.webstyler.it/public/ok.gif[/url]
Bad Image:[url]http://www.webstyler.it/public/ko.gif[/url]
Script is really simpe:
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Firstly, what is -$color supposed to do? I can't see a reason for the -.
Secondly, are you switching antialiasing off? You're not using the imageantialias() function at all..
Thirdly, has anyone changed GD at all? In particular, have they upgraded the freetype library to enable font hinting? I think the problem is that the font you're using is actually supposed to look like the "bad" gif, but until now GD hasn't been using it's hinting values so it's looked like the old gif. (Bit of a guess there though..)
onion2k wrote:
Secondly, are you switching antialiasing off? You're not using the imageantialias() function at all..
..uhm
I've used - on imagegetftext
but I can try to add imageantialias
onion2k wrote:
Thirdly, has anyone changed GD at all? In particular, have they upgraded the freetype library to enable font hinting? I think the problem is that the font you're using is actually supposed to look like the "bad" gif, but until now GD hasn't been using it's hinting values so it's looked like the old gif. (Bit of a guess there though..)
Gd is the same versione, php is been upgraded
how can I check if hosting service have upgraded the freetype library to enable font hinting ?