note 38032 added to function.imagettftext

From: Date: Fri, 05 Dec 2003 12:33:57 +0000
Subject: note 38032 added to function.imagettftext
Groups: php.notes 
Request: Send a blank email to php-notes+get-61445@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.imagettftext.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38032 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38032&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38032&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61445) next »