note 30124 added to function.imagefttext
| From: | Brian at PrintsMadeEasy dot com | Date: | Fri, 07 Mar 2003 01:56:54 +0000 |
| Subject: | note 30124 added to function.imagefttext | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44964@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.imagefttext.php
http://master.php.net/manage/user-notes.php?action=edit+30124
http://master.php.net/manage/user-notes.php?action=delete+30124
http://master.php.net/manage/user-notes.php?action=reject+30124