在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;
}
全网最新最细最实用WPS零基础入门到精通全套教程!带你真正掌握WPS办公! 内含Excel基础操作、函数设计、数据透视表等
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号