PHP 8.5.0 Alpha 4 available for testing

Voting

: max(four, zero)?
(Example: nine)

The Note You're Voting On

ta at NOSPAM dot magicsquare dot info
22 years ago
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

<< Back to user notes page

To Top