Connecting Tech Pros Worldwide Forums | Help | Site Map

Truetype/Freetype rendering

p
Guest
 
Posts: n/a
#1: Mar 6 '06
Hi,

I've been writing text onto images using imagettftext, having first loaded
an Arial TTF. The result can be seen at http://linuxbox.co.uk/57_off.png

After moving the code to another server, the text started coming out
differently: http://linuxbox.co.uk/65_off.png

Examing phpinfo() for each server, it seems the original server had:

FreeType Linkage with TTF library

,while the on the second server:

FreeType Linkage with freetype

I've tried using imagefttext rather than imagettftext, but the text is no
better.

I'm not in a position to recompile PHP on the second machine. Is there
anything else I can do to improve the text quality? It looks as if the
text in the second URL is still being rendered in Arial, only more poorly.

Thanks,
Pete

Closed Thread


Similar PHP bytes