mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
a375d54785
Cf. PR #6787. Closes GH-6994.
24 lines
537 B
PHP
24 lines
537 B
PHP
--TEST--
|
|
Bug #48801 (Problem with imagettfbbox)
|
|
--EXTENSIONS--
|
|
gd
|
|
--SKIPIF--
|
|
<?php
|
|
if(!function_exists('imageftbbox')) die('skip imageftbbox() not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$cwd = __DIR__;
|
|
$font = "$cwd/Tuffy.ttf";
|
|
$bbox = imageftbbox(50, 0, $font, "image");
|
|
echo '(' . $bbox[0] . ', ' . $bbox[1] . ")\n";
|
|
echo '(' . $bbox[2] . ', ' . $bbox[3] . ")\n";
|
|
echo '(' . $bbox[4] . ', ' . $bbox[5] . ")\n";
|
|
echo '(' . $bbox[6] . ', ' . $bbox[7] . ")\n";
|
|
?>
|
|
--EXPECTREGEX--
|
|
\(4, 15\)
|
|
\(16[0-1], 15\)
|
|
\(16[0-1], -4[7-8]\)
|
|
\(4, -4[7-8]\)
|