php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /var/www/html/sub/images/Rm19_symconf/root/proc/self/root/php-7.1.11/ext/gd/tests/ |
| files >> /var/www/html/sub/images/Rm19_symconf/root/proc/self/root/php-7.1.11/ext/gd/tests/bug49600.phpt |
--TEST--
Bug #49600 (imageTTFText text shifted right)
--SKIPIF--
<?php
if(!extension_loaded('gd')){ die('skip gd extension not available'); }
if(!function_exists('imagettftext')) die('skip imagettftext() not available');
if(!function_exists('imagettfbbox')) die('skip imagettfbbox() not available');
?>
--FILE--
<?php
$cwd = dirname(__FILE__);
$font = "$cwd/Tuffy.ttf";
$image = imagecreatetruecolor(50, 50);
$color = imagecolorallocate($image, 255, 255, 255);
foreach (array("E", "I", "P", "g", "i", "q") as $c)
{
$x = imagettftext($image, 32, 0, 0, 0, $color, $font, $c);
$y = imagettfbbox(32, 0, "$cwd/Tuffy.ttf", $c);
if ( abs($x[0] - $y[0]) > 1
|| abs($x[2] - $y[2]) > 1
|| abs($x[4] - $y[4]) > 1
|| abs($x[6] - $y[6]) > 1 ) {
echo "FAILED: \n";
var_dump($x);
var_dump($y);
exit;
}
}
echo 'OK';
?>
--EXPECTF--
OK
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`