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?> 9--FILE-- 10<?php 11$cwd = __DIR__; 12$font = "$cwd/Tuffy.ttf"; 13$g = imagecreate(100, 50); 14$bgnd = imagecolorallocate($g, 255, 255, 255); 15$black = imagecolorallocate($g, 0, 0, 0); 16$bbox = imagettftext($g, 12, 0, 0, 20, $black, $font, "ABCEDFGHIJKLMN\nopqrstu\n"); 17imagepng($g, "$cwd/bug48732.png"); 18echo 'Left Bottom: (' . $bbox[0] . ', ' . $bbox[1] . ')'; 19?> 20--CLEAN-- 21<?php @unlink(__DIR__ . '/bug48732.png'); ?> 22--EXPECT-- 23Left Bottom: (0, 46) 24