我正在使用imagettftext()
在圖像上創建文本。我使用了新的羅馬字體,該應用程序在我的開發機器上正常工作,但不在實時環境中。在本地主機上工作的字體,但不在活動服務器上
請adivce。這是由於我的開發。機器在Windows和生活是Linux?
請幫助
實際的問題是在我的locahost文本出現的「怪物」,但現場服務器「莫nster」這不僅與O,但與其他字母太...
$font = './fonts/times.ttf';
$bbox = imagettfbbox(30, 0, $font, $word);
$x = $bbox[0] + (imagesx($src)/2) - ($bbox[4]/2);
$y = $bbox[1] + (imagesy($src)/2) - ($bbox[5]/2)+212;
imagettftext($src, 30, 0, $x, $y, $color, $font, $word);
$bbox2 = imagettfbbox(18, 0, $font, $definition);
$x = $bbox2[0] + (imagesx($src)/2) - ($bbox2[4]/2);
$y = $bbox2[1] + (imagesy($src)/2) - ($bbox2[5]/2)+245;
imagettftext($src, 18, 0, $x, $y, $white, $font, $definition);
apache是否有權限讀取字體所在的文件/目錄? – zeyus 2011-01-11 14:10:39