note 27068 added to function.imagefttext

From: Date: Thu, 21 Nov 2002 18:22:27 +0000
Subject: note 27068 added to function.imagefttext
Groups: php.notes 
Request: Send a blank email to php-notes+get-39829@lists.php.net to get a copy of this message
Thanks for the script! I modified it to show several fonts that I was wanting to use. I am using GD-2.0.7, FreeType-2.1.3(text rotation fix,among others), and PHP-4.2.3 and had to include the array information to get it to work. Code change follows: $fontfile="/usr/local/fonts/ttf/bookantbd.ttf"; // Waterfall of point sizes to see what Freetype 2's autohinting looks like: // for($i=4;$i<=12;$i++){ ImageFtText($image,$i,0,10,(280+$i*14),$forecolor,$fontfile, bookantbd . $i . ". " . $string, array("linespacing" => 1.0)); } John -- http://www.php.net/manual/en/function.imagefttext.php http://master.php.net/manage/user-notes.php?action=edit+27068 http://master.php.net/manage/user-notes.php?action=delete+27068 http://master.php.net/manage/user-notes.php?action=reject+27068

« previous php.notes (#39829) next »