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 />
注:因直接使用中文,為不顯示為亂碼,需要把該代碼文件,轉(zhuǎn)換成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插件
編輯配置,修改字體為“宋體”