<?php
$size = 12;//font height
$font = 'Arial';// your font
$char = 'Test';
$char = 'With W';
$char = 'without w but with p and y and q';
$rect = imagettfbbox($size, 0, $font, $char);
$image_height =abs($rect[7]);//do no respect bottom margin
$imw = $rect[2] - $rect[0]; //as usual
$bx = abs($rect[ 0 ]); // X offset
$by = $size * 1.25; // Y offset - we will use const LINEHEIGHT
?>
你能幫我解決這個錯誤嗎?imagettfbbox():無效的字體文件名
警告:imagettfbbox()[function.imagettfbbox]:用C無效字體文件名:\瓦帕\ WWW \第8行