1. Install Mantis Diagram 1.0 Plugin
Administrator login-------Management------plug-in management, install plug-ins
2, upload font simhei.ttf SIMSUN.TTC simsun.ttf three files (can be downloaded online) to/usr/share/fonts/truetype/
3. Download Jpgraph ()
# tar ZXVF jpgraph-3.5.0b1.tar.gz
# cp src//usr/local/nginx/html/mantisbt/library/jpgraph/copy src and rename to Jpgraph,/usr/local/nginx/html/mantisbt/for Site Directory
4. Modify the configuration file
# Cd/usr/local/nginx/html/mantisbt/library/jpgraph
# Vim jpgraph_ttf.inc.php
183 ElseIf ($aFF = = = Ff_simsun) {Approximately 183 lines
184//Do Chinese conversion
185 # if ($this->g2312 = = null) {Comment
186 # include_once ' jpgraph_gb2312.php '; Comments
187 # $this->g2312 = new Gb2312toutf8 (); Comments
188 #} Comments
189 # return $this->g2312->gb2utf8 ($ATXT); Comments
$aTxt of the return; Add to
191}
# CD: /.. /plugins/mantisgraph/core/
# Vim graph_api.php
if (Plugin_config_get (' eczlibrary ') = = on) {
$t _font_map = Array (
58' simsun ' = ' Simfang '. TTF ',Add this line
' Arial ' and ' Arial.ttf ',
' Verdana ' and ' Verdana.ttf ',
' Trebuchet ' and ' Trebuc.ttf ',
' Verasans ' and ' Vera.ttf ',
' Times ' and ' Times.ttf ',
' Georgia ' and ' Georgia.ttf ',
' Veraserif ' and ' Verase.ttf ',
' Courier ' and ' Cour.ttf ',
' Veramono ' and ' Veramono.ttf ',
68);
$t _font_map = Array (
86' SimSun ' = Ff_simsun, add this line
"Arial" = Ff_arial,
"Verdana ' + Ff_verdana,
"Trebuchet" and Ff_trebuche,
' Verasans ' and Ff_vera,
"Times" and Ff_times,
' Georgia ' and Ff_georgia,
"Veraserif '" = Ff_veraserif,
94 ' Courier ' = Ff_courier,
"Veramono" and Ff_veramono,
96);
# CD: /pages/
# Vim config.php
$t _current_font_selected = Array (
' SimSun ' = False, add this line
"Arial" = False,
' Verdana ' and false,
' Trebuchet ' and false,
' Verasans ' and false,
"Times" = False,
' Georgia ' = False,
' Veraserif ' and false,
"Courier ' +" = False,
' Veramono ' and false,
35);
121 sans-serif:<br/>
122<label><input type= "Radio" name= "Font" value= "SimSun" <?php Echo print_font_checked (' SimSun ')? >/& Gt;simsun</label><br/> Add this line
123 <label><input type= "Radio" name= "Font" value= "Arial" <?php echo print_font_checked (' Arial ' )? >/>arial</label><br/>
124 <label><input type= "Radio" name= "Font" value= "Verdana" <?php Echo print_font_checked (' Verd A Na ')? >/>verdana</label><br/>
<label><input type= "Radio" name= "Font" value= "Trebuchet" <?php Echo print_font_checked (' tr E Buchet ')? >/>trebuchet</label><br/>
126 <label><input type= "Radio" name= "Font" value= "Verasans" <?php echo print_font_checked (' ver A sans ')? >/>vera sans</label>
127 </td>
# Vim config_edit.php
if (plugin_config_get (' font ')! = $f _font) {
Switch ($f _font) {
49Case ' SimSun ': Add this line
Case ' Arial ':
Wuyi case ' Verdana ':
Case ' trebuchet ':
"Verasans":
The case ' times ':
Case ' Georgia ':
' Veraserif ':
"Courier":
"Veramono":
Plugin_config_set (' font ', $f _font);
break;
The default:
5, set the report font to the song body
Administrator login-----------Management------------plug-in Management---------Mantis Diagram 1.0
6, refresh the report, you can see the normal Chinese display
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Mantis report Chinese garbled