各位好:
在使用Jpgraph时,为了在图片上显示中文,使用了“$graph->title->setFont(FF_SIMSUN,FS_BOLD,30);”,但是一旦使了这句后,总是显示不出来图片,显示的是x号,怎么回事?怎么解决?谢谢
在使用Jpgraph时,为了在图片上显示中文,使用了“$graph->title->setFont(FF_SIMSUN,FS_BOLD,30);”,但是一旦使了这句后,总是显示不出来图片,显示的是x号,怎么回事?怎么解决?谢谢
解决方案 »
- php统计会员在线时间问题
- PHP入门书《PHP和MySQL Web开发》是第三版好呢还是第四版好
- jquery ajax 无法传递 “>>”?
- 获取按钮id
- 用socket如何编写下列http://211.100.115.37/lxd/liuyue.php?username=try2&password=060621&birth=19530528&length=70的HTTP协议的POST
- 数据库text字段如何分页?
- 高分请教,急——复选框不钩选,提交的时候出错。
- 清空Mysql数据表的问题
- 100分求一个网站设计方案和模板方案!
- jquery ajax的简单应用,但是返回值就是初步来!
- preg_match做过滤词功能,遇到长度限制了!
- 正则表达式如何查找一行中不包含某个字符的行的内容
在其手册中有的,我记得中文不超过5种。SIMSUN,是这个吗?
<?php // content="text/plain; charset=utf-8"
require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph_bar.php');$datay1=array(13,8,19);
$datay2=array(0,0,0);// Create the graph.
$graph = new Graph(350,250);
$graph->SetScale('textlin');
$graph->SetMarginColor('silver');// Setup title
$graph->title->Set("我是中国人");
$graph->title->setFont(FF_SIMSUN,FS_BOLD,30);
// Create the first bar
$bplot = new BarPlot($datay1);
$bplot->SetFillGradient('AntiqueWhite2','AntiqueWhite4:0.8',GRAD_VERT);
$bplot->SetColor('darkred');// Create the second bar
$bplot2 = new BarPlot($datay2);
$bplot2->SetFillGradient('olivedrab1','olivedrab4',GRAD_VERT);
$bplot2->SetColor('darkgreen');// And join them in an accumulated bar
$accbplot = new AccBarPlot(array($bplot,$bplot2));
$graph->Add($accbplot);$graph->Stroke();
?>
jpgraph 显示中文的问题不是早就修正过了吗?怎么还有中文问题?