imagettftext - ugly fonts (anti-aliasing needed)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
penny
Forum Newbie
Posts: 3
Joined: Tue Jul 15, 2003 8:53 am

imagettftext - ugly fonts (anti-aliasing needed)

Post by penny »

hi,

i have problem with text that i output to image using imagettftext() function. how can i make my php to generate anti-aliased text?
i read somewhere that people have problems with turning off anti-aliasing in this function, but i NEED anti-aliasing TURNED ON. does my php version (or gd version) have bugs? i read that imagettftext() SHOULD output anti-aliased text, my does not.

i know i can generate huge image and then copy it to antother, smaler using imagecopyresampled(), but that's not a good idea because i need to generate images about 1110x650 pixels. so generating bigger image and then resampling it down to 1110x650 pixels will result in great memory and cpu time consumption.

please help!!!
my versions are:
php: 4.2.3
gd: 1.3.8-7
freetype: 2.0 (99% sure about this)


penny
Post Reply