note 10971 deleted from function.imageloadfont by sniper
| From: | sniper@php.net | Date: | Sat, 18 Oct 2003 06:11:21 +0000 |
| Subject: | note 10971 deleted from function.imageloadfont by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58792@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster@linuxdownloads.org
----
You can also use the ImageTTFText() function in order to change the font - or anything that has to
do whith it.
I used somth. like:
<?php
$im = imagecreate (50, 250);
$bgcolor = ImageColorAllocate ($im, 0x77, 0x77, 0x77);
$font = ImageColorAllocate ($im, 0x00, 0x00, 0x00);
ImageTTFText ($im, 35, 90, 40, 230, $font, "../arial.ttf", "mytext");
Imagepng ($im, "pic.png");
ImageDestroy ($im);
echo "<html><body><img src=\"pic.png\"
border=0></body></html>";
?>
Works fine ;-)