This is driving me crazy. I'm currently working on a Facebook App that figures out your most popular status and then makes a collage that the user can post to their profile. So far, I thought I was doing a pretty good job until I realized that all the statuses are going to go off the picture. So I was wondering, is there a way to make sure that it will go onto the next line after it reaches a certain distance using imagestring? So far I'm at a loss... Any help would be much obliged
You are not at loss. Solution to your question is function imagettfbbox http://php.net/manual/en/function.imagettfbbox.php You can find a lot of examples within this page. I hope it helps.
Thanks for the quickk response! So far haven't found a way to get text to go go to the next line automatically with it but it does allow me to use "\n", which is all I need to move forward anyway