[英]PHP imagettftext not working with freetype support
我的帶有imagettftext函數的代碼在linux上不起作用,但是在我的Windows上卻可以正常工作。
imagettftext($thumb, 10, 0, 130, 60, $textcolor, "./arial.ttf", "123");
我已經安裝了gd lib,freetype和font
gd_info()輸出:
array(12) {
["GD Version"]=>
string(13) "2.0 or higher"
["FreeType Support"]=>
bool(true)
["FreeType Linkage"]=>
string(13) "with freetype"
["T1Lib Support"]=>
bool(true)
["GIF Read Support"]=>
bool(true)
["GIF Create Support"]=>
bool(true)
["JPG Support"]=>
bool(true)
["PNG Support"]=>
bool(true)
["WBMP Support"]=>
bool(true)
["XPM Support"]=>
bool(false)
["XBM Support"]=>
bool(false)
["JIS-mapped Japanese Font Support"]=>
bool(false)
}
功能結果:
array (
0 => -53534192,
1 => 32627,
2 => -53534184,
3 => 32627,
4 => -53534176,
5 => 32627,
6 => -1169942752,
7 => 32767,
)
freetype版本與我的Centos版本不兼容
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.