目前最新版本為jpgraph3.0.7,下載處http://jpgraph.net/download/

一、Mantis安裝正常後,在 /mantis/plugins/MantisGraph 下,更改MantisGraph.php 約49行。

 /**
         * Default plugin configuration.
         */
        function config() {
                return array(
                        'eczlibrary' => ON,

                        'window_width' => 800,
                        'bar_aspect' => 0.9,
                        'summary_graphs_per_row' => 2,
                        'font' => 'arialuni',    //更改你要的字型

二、在 /mantis/plugins/MantisGraph/core/ 更改graph_api.php,約90行。

 $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,
                        'arialuni' => FF_CHINESE,  //新增此行
三、在jpgraph路徑下,更改jpgraph_ttf.inc.php ,約319行。

   /* Chinese fonts */
            FF_SIMSUN  =>  array(
                FS_NORMAL =>'simsun.ttc',
                FS_BOLD =>'simhei.ttf',
                FS_ITALIC =>'',
                FS_BOLDITALIC =>'' ),
            FF_CHINESE  =>   array(
                FS_NORMAL =>CHINESE_TTF_FONT,
                FS_BOLD =>'arialuni.ttf', //新增字型
                FS_ITALIC =>'',
                FS_BOLDITALIC =>'' ),

arrow
arrow
    全站熱搜

    xiang0504 發表在 痞客邦 留言(0) 人氣()