Maison >développement back-end >tutoriel php >在linux 下 pdflib 多语言有关问题
在linux 下 pdflib 多语言问题
关键代码如下:
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$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;}