note 24977 added to function.imageftbbox
| From: | ta at NOSPAM dot magicsquare dot info | Date: | Fri, 06 Sep 2002 14:37:18 +0000 |
| Subject: | note 24977 added to function.imageftbbox | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36244@lists.php.net to get a copy of this message | ||
i've found a work around for this situation
it seems that height is directly proportional to line spacing so you just have to apply the same
factor to image height
for example :
$spacing = 0.7;
$params = array("linespacing" => $spacing);
$box = imageftbbox ($size, 0, $font, $text, $params);
$tw=$box[4]-$box[0]; //image width
$th=($box[1]-$box[5])*$spacing; //image height
--
http://www.php.net/manual/en/function.imageftbbox.php
http://master.php.net/manage/user-notes.php?action=edit+24977
http://master.php.net/manage/user-notes.php?action=delete+24977
http://master.php.net/manage/user-notes.php?action=reject+24977