mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
23 lines
572 B
PHP
23 lines
572 B
PHP
--TEST--
|
|
Bug #48801 (Problem with imagettfbbox)
|
|
--SKIPIF--
|
|
<?php
|
|
if(!extension_loaded('gd')){ die('skip gd extension not available'); }
|
|
if(!function_exists('imageftbbox')) die('skip imageftbbox() not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$cwd = dirname(__FILE__);
|
|
$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";
|
|
?>
|
|
--EXPECTF--
|
|
(-1, 15)
|
|
(155, 15)
|
|
(155, -48)
|
|
(-1, -48)
|