开源缺陷管理工具mantis中图形报表显示乱码

duxiaohan0326 2015-08-14 02:50:02
只是改成中文之后,图形报表就显示乱码。有大神能帮忙解决下吗?用的是jpgraph
...全文
66 点赞 收藏 1
写回复
1 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
zxh1141070645 2016-03-01
1、修改mant\plugins\MantisGraph\core\graph_api.php文件下 在56行找到 if ( plugin_config_get( 'eczlibrary' ) == ON ) { $t_font_map = array( 'arial' => 'arial.ttf', 'verdana' => 'verdana.ttf', 'trebuchet' => 'trebuc.ttf', 'verasans' => 'Vera.ttf', 'times' => 'times.ttf', 'georgia' => 'georgia.ttf', 'veraserif' => 'VeraSe.ttf', 'courier' => 'cour.ttf', 'veramono' => 'VeraMono.ttf', ); 然后改成 if ( plugin_config_get( 'eczlibrary' ) == ON ) { $t_font_map = array( 'simsun' => 'SIMFANG.TTF', //此处为添加处 'arial' => 'arial.ttf', 'verdana' => 'verdana.ttf', 'trebuchet' => 'trebuc.ttf', 'verasans' => 'Vera.ttf', 'times' => 'times.ttf', 'georgia' => 'georgia.ttf', 'veraserif' => 'VeraSe.ttf', 'courier' => 'cour.ttf', 'veramono' => 'VeraMono.ttf', ); 在大约87行找到 e { $t_font_map = array( 'arial' => FF_ARIAL, 'verdana' => FF_VERDANA, 'trebuchet' => FF_TREBUCHE, 'verasans' => FF_VERA, 'times' => FF_TIMES, 'georgia' => FF_GEORGIA, 'veraserif' => FF_VERASERIF, 'courier' => FF_COURIER, 'veramono' => FF_VERAMONO, ); 修改成: else { $t_font_map = array( 'simsun'=> FF_SIMSUN, //此处为添加处 'arial' => FF_ARIAL, 'verdana' => FF_VERDANA, 'trebuchet' => FF_TREBUCHE, 'verasans' => FF_VERA, 'times' => FF_TIMES, 'georgia' => FF_GEORGIA, 'veraserif' => FF_VERASERIF, 'courier' => FF_COURIER, 'veramono' => FF_VERAMONO, ); 然后保存,该文件修改完毕。 2、修改mant\plugins\MantisGraph\pages\config.php文件下 大约25行处找到 $t_current_font_selected = array( 'arial' => false, 'verdana' => false, 'trebuchet' => false, 'verasans' => false, 'times' => false, 'georgia' => false, 'veraserif' => false, 'courier' => false, 'veramono' => false, ); 修改为 $t_current_font_selected = array( 'simsun' => false, //此处为添加处 'arial' => false, 'verdana' => false, 'trebuchet' => false, 'verasans' => false, 'times' => false, 'georgia' => false, 'veraserif' => false, 'courier' => false, 'veramono' => false, );
回复
相关推荐
发帖
PHP
创建于2008-08-27

1.9w+

社区成员

“超文本预处理器”,是在服务器端执行的脚本语言,尤其适用于Web开发并可嵌入HTML中。PHP语法利用了C、Java和Perl,该语言的主要目标是允许web开发人员快速编写动态网页。
申请成为版主
帖子事件
创建了帖子
2015-08-14 02:50
社区公告
暂无公告