note 30127 added to function.imagettftext
| From: | Brian at PrintsMadeEasy dot com | Date: | Fri, 07 Mar 2003 03:01:55 +0000 |
| Subject: | note 30127 added to function.imagettftext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44967@lists.php.net to get a copy of this message | ||
I noticed that PHP's True Type functions do not allow you to create text blocks with multiple
lines that automatically adjust for alignment. I wrote a function that will allow you to generate
images with multiple lines, control the alignment, and handle rotation. I hope it helps someone.
There was too much code to paste on this message post so you can grab it off of my webserver. I
also created an example page so that you can see the code in action.
Example Page:
http://www.PrintsMadeEasy.com/code_samples/php/text_generation.php
Download the Text file:
http://www.PrintsMadeEasy.com
/code_samples/php/text_generation.txt
--
http://www.php.net/manual/en/function.imagettftext.php
http://master.php.net/manage/user-notes.php?action=edit+30127
http://master.php.net/manage/user-notes.php?action=delete+30127
http://master.php.net/manage/user-notes.php?action=reject+30127