imagettfbbox
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Give the bounding box of a text using TrueType fonts
imagettfbbox
(
float $size
,
float $angle
,
string $font_filename
,
string $string
,
array $options
= []): array|
false
Intervention/image
$this
->
text
=
mb_encode_numericentity
(
$this
->
text
, array(
0x0080
,
0xffff
,
0
,
0xffff
),
'UTF-8'
);
$box
=
imagettfbbox
(
$this
->
getPointSize
(),
0
,
$this
->
file
,
$this
->
text
);
if (
$this
->
angle
!=
0
) {
src/Intervention/Image/Gd/Font.php