1--TEST-- 2Bug #48732 (TTF Bounding box wrong for letters below baseline) 3--EXTENSIONS-- 4gd 5--SKIPIF-- 6<?php 7 if(!function_exists('imagefttext')) die('skip imagefttext() not available'); 8 if (substr(PHP_OS, 0, 3) == 'WIN') die('skip UTF-8 font file names not yet supported on Windows'); 9?> 10--FILE-- 11<?php 12$cwd = __DIR__; 13$font = "$cwd/Tuffy私はガラスを食べられます.ttf"; 14$g = imagecreate(100, 50); 15$bgnd = imagecolorallocate($g, 255, 255, 255); 16$black = imagecolorallocate($g, 0, 0, 0); 17$bbox = imagettftext($g, 12, 0, 0, 20, $black, $font, "ABCEDFGHIJKLMN\nopqrstu\n"); 18imagepng($g, "$cwd/bug48732私はガラスを食べられます.png"); 19echo 'Left Bottom: (' . $bbox[0] . ', ' . $bbox[1] . ')'; 20?> 21--CLEAN-- 22<?php @unlink(__DIR__ . '/bug48732私はガラスを食べられます.png'); ?> 23--EXPECT-- 24Left Bottom: (0, 46) 25