note 15198 deleted from function.imagettftext by jimw

From: Date: Mon, 17 Dec 2001 22:38:08 +0000
Subject: note 15198 deleted from function.imagettftext by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23047@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.

« previous php.notes (#23047) next »