时间:2021-07-01 10:21:17 帮助过:54人阅读
$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;
}