$pic=imagecreate(250,30);  
$black=imagecolorallocate($pic,0,0,0);  
$white=imagecolorallocate($pic,255,255,255);  
$font="C://WINDOWS//Fonts//simhei.ttf";  //这里的路进需要注意下,必须是字符的路径 
$str ='php'.iconv('gb2312','utf-8','面对对象')." ";  
imagettftext($pic,10,0,10,20,$white,$font,$str); 
       
解决GD中文乱码问题
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:http://www.heiqu.com/24e9b83bcf24d5c075f73a8b0a60f892.html
