note 30050 added to function.imagettfbbox
| From: | Brian at NOSPAM dot php dot net | Date: | Wed, 05 Mar 2003 11:01:23 +0000 |
| Subject: | note 30050 added to function.imagettfbbox | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44864@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.imagettfbbox.php
http://master.php.net/manage/user-notes.php?action=edit+30050
http://master.php.net/manage/user-notes.php?action=delete+30050
http://master.php.net/manage/user-notes.php?action=reject+30050