日期:2014-05-17 浏览次数:20550 次
$path = getcwd()."/src/fonts/newfont.TTF"; if(!PDF_set_parameter($p, "FontOutline", "myfont=$path")) { PDEBUG("set parameter fontoutline fail", __FILE__, __LINE__); } [color=#FF0000]$fonthand = PDF_load_font($this->pdf, "myfont", "unicode", ""); //此行报错[/color] if($fonthand == NULL) { PDEBUG("failed to search for a font and prepare it for later use",__LINE__,__FILE__); } if(!pdf_setfont($p, $fonthand, $big)) { pdebug("设置字体失败",__line__,__file__); return false; }