sam keen's corner of the web

GD imagettftext broken on Leopard/mac ports

Spent the better part of the morning battling PHP/GD. I needed to overlay text on an image, something I can recall doing in the past without issue. Not this morning though. Everytime the code got to ‘imagettftext’ it would result in a WSOD. After much troubleshooting and Google’ng I found this mention in the PHP bug db which then pointed to the root of the cause: The macports ‘freetype’ lib. The solution for fixing that is here.

hope this helps others

Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>