我的函数imagettftext的代码不能在linux上运行,但在我的窗口上运行良好。
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,
)
答案 0 :(得分:0)
freetype版本与我的Centos版本不兼容