note 35232 modified in function.imagettfbbox by vincent

From: Date: Sun, 24 Aug 2003 18:12:13 +0000
Subject: note 35232 modified in function.imagettfbbox by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55005@lists.php.net to get a copy of this message
to display text at the Top-Right corner: <?php $s = $_SERVER['HTTP_HOST']; $BOX = imagettfbbox(24, 0, 'ariblk.ttf', $s); imagettftext($im, 24, 0, imagesx($im) - $BOX[2], -$BOX[5], -$c, 'ariblk.ttf', $s); ?> (tested with PHP4.1.2 and GD1.6.2) --was-- to display text at the Top-Right corner: <?$s=$_SERVER['HTTP_HOST']; $BOX=imagettfbbox(24,0,'ariblk.ttf',$s); imagettftext($im,24,0,imagesx($im)-$BOX[2],-$BOX[5], -$c,'ariblk.ttf',$s);?> (tested with PHP4.1.2 and GD1.6.2) http://www.php.net/manual/en/function.imagettfbbox.php

« previous php.notes (#55005) next »