6月 21

解决使用PEAR的Image Canvas绘制统计图表报错 多云

yaiba , 14:45 , 技术运用 , 评论(0) , 引用(0) , 阅读(1374) , Via 本站原创
服务器是linux+mysql5+php5+apache2,
本地环境是xp sp2+mysql5+php5+apache2,
本地测试可以正常生成图,在服务器上提示下面错误!
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in C:\Program Files\vtigercrm5\apache\htdocs\vtigerCRM\Image\Canvas\GD.php on line 1245

Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in C:\Program Files\vtigercrm5\apache\htdocs\vtigerCRM\Image\Canvas\GD.php on line 1245

Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in C:\Program Files\vtigercrm5\apache\htdocs\vtigerCRM\Image\Canvas\GD.php on line 1245


分析:由于windows比较智能,如果没有字体,会动态的从系统的字体库中调用,linux则不会。
解决办法:
1.将相应字体文件上传至Image\Canvas\Fonts下面,
2.如果你使用了其他为定义的字体,需要在同目录下的fontmap.txt中添加字体名称定义及字体文件名。
Tags: , ,
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]