note 38032 deleted from function.imagettftext by aidan
| From: | aidan@php.net | Date: | Mon, 20 Sep 2004 09:58:27 +0000 |
| Subject: | note 38032 deleted from function.imagettftext by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77020@lists.php.net to get a copy of this message | ||
Note Submitter: andreas at schipplock dot de
----
I have got a hint for those people who try to make something like this:
<?PHP
imagettftext($image, $fontsize, 0, 2, $height-10, $font_c,
$_SERVER["DOCUMENT_ROOT"].$_GET["fontfilepath"], $text);
?>
Even if the path is correct this function isn´t able to find the ttf-font.
Try this instead:
<?php
$fontfile = $_SERVER["DOCUMENT_ROOT"].$_GET["fontfilepath"];
imagettftext($image, $fontsize, 0, 2, $height-10, $font_c, $fontfile, $text);
?>
This should work...it works for me.