note 27623 added to ref.image

From: Date: Fri, 13 Dec 2002 09:18:06 +0000
Subject: note 27623 added to ref.image
Groups: php.notes 
Request: Send a blank email to php-notes+get-40854@lists.php.net to get a copy of this message
if you have PHP 4.2.3 windows binaries then just uncomment the line ;extension=php_gd.dll then restart your web server GD, and Freetype is enabled but be careful when u use imagettftext you must point the correct path to the TTf font file !!! but you must be twice careful some windows TTF (times, tahoma,...)fonts are not rendered and gives an error like "The image ... cannot be displayed, because it contains errors" I tested arial and verdena works fine :) imagettftext ($im, $size, $angle, $left,$bottomleft , $col, $font, $text); for windows it's best practice to place font files ander php folder and use them from that location imagettftext ($im, $size, $angle, $left,$bottomleft , $col, "c:\php\fonts\arial.ttf", $text); Ihope this will save some time for beginners (at first, i enabled gd and tried times.ttf :-( this cost me a week to solve this problem i searched every website and find nearly nothing -- http://www.php.net/manual/en/ref.image.php http://master.php.net/manage/user-notes.php?action=edit+27623 http://master.php.net/manage/user-notes.php?action=delete+27623 http://master.php.net/manage/user-notes.php?action=reject+27623

« previous php.notes (#40854) next »