note 27623 deleted from ref.image by betz

From: Date: Tue, 24 Aug 2004 22:14:34 +0000
Subject: note 27623 deleted from ref.image by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75229@lists.php.net to get a copy of this message
Note Submitter: oerisen at netscape dot net ---- 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

« previous php.notes (#75229) next »