1.3. 修改mantispluginsMantisGraphpagesconfig.php
(1)增加字体simsun
$t_current_font_selected = array(
'arial' => false,
=》
$t_current_font_selected = array(
//2013-01-09 luly 解决jpgraph中文乱码问题
'simsun' => false,
'arial' => false,
(2)配置页面显示新增加的simsun(宋体)
<td style="vertical-align: top">
Sans-serif:<br />
<label><input type="radio" name="font" value="arial"<?php echo print_font_checked( 'arial' )?>/>Arial</label><br />
=》
<td style="vertical-align: top">
Sans-serif:<br />
<!--2013-01-09 luly 解决jpgraph中文乱码问题 -->
<label><input type="radio" name="font" value="simsun"<?php echo print_font_checked( 'simsun' )?>/>宋体</label><br />
<label><input type="radio" name="font" value="arial"<?php echo print_font_checked( 'arial' )?>/>Arial</label><br />
注:因直接使用中文,为不显示为乱码,需要把该代码文件,转换成UTF-8编码格式,文件另存为时选择即可;
1.4. 修改mantispluginsMantisGraphpagesconfig_edit.php
if ( plugin_config_get( 'font' ) != $f_font ) {
switch ( $f_font ) {
case 'arial':
=》
if ( plugin_config_get( 'font' ) != $f_font ) {
switch ( $f_font ) {
//2013-01-09 luly 解决jpgraph中文乱码问题
case 'simsun';
case 'arial':
1.5. 修改mantispluginsMantisGraphcoregraph_api.php
$t_font_map = array(
'arial' => FF_ARIAL,
=》
$t_font_map = array(
//2013-01-09 luly 解决jpgraph中文乱码问题
'simsun' => FF_SIMSUN,
'arial' => FF_ARIAL,
1.6. 修改MantisGraph插件配置
管理-插件管理-MantisGraph插件
编辑配置,修改字体为“宋体”