note 62363 added to function.imagettfbbox

From: Date: Sun, 26 Feb 2006 09:48:15 +0000
Subject: note 62363 added to function.imagettfbbox
Groups: php.notes 
Request: Send a blank email to php-notes+get-104455@lists.php.net to get a copy of this message
Tried Greg's code below, but it didn't quite work for me. This did, however: <?php $size = imagettfbbox($fontSize, 0, $font, $text); $width = $size[2] + $size[0]; $height = abs($size[1]) + abs($size[7]); $image = imagecreatetruecolor($width, $height); imagettftext($image, $fontSize, 0, 0, abs($size[5]), $black, $font, $text); ?> ---- Server IP: 129.16.214.50 Probable Submitter: 217.208.195.96 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.imagettfbbox.php Edit -- http://master.php.net/note/edit/62363 Del: integrated -- http://master.php.net/note/delete/62363/integrated Del: useless -- http://master.php.net/note/delete/62363/useless Del: bad code -- http://master.php.net/note/delete/62363/bad+code Del: spam -- http://master.php.net/note/delete/62363/spam Del: non-english -- http://master.php.net/note/delete/62363/non-english Del: in docs -- http://master.php.net/note/delete/62363/in+docs Del: other reasons-- http://master.php.net/note/delete/62363 Reject -- http://master.php.net/note/reject/62363 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104455) next »