note 15198 added to function.imagettftext

From: Date: Fri, 31 Aug 2001 12:50:37 +0000
Subject: note 15198 added to function.imagettftext
Groups: php.notes 
Request: Send a blank email to php-notes+get-17427@lists.php.net to get a copy of this message
A problem which occured quite often (question in newsgroups): Under windows the drive spec ("C:/") for loading ttf-fonts does not work well. Using for example (not all vars setted!) [...] $fontFile="/WINNT/Fonts/comic.ttf"; $sz = imagettfbbox ($fontSize, 0, $fontFile, $str); [...] ImageTTFText ($im, $fontSize, 0, $border+$sz[0]-1, 3-$sz[7], $textColor, $fontFile, "Hello moon!"); it works pretty nice. http://www.php.net/manual/en/function.imagettftext.php

« previous php.notes (#17427) next »