2017-10-28 116 views

回答

0

最新的TCPDF版本使用addTTFfont()方法自動將字體轉換爲TCPDF格式。例如:

// convert TTF font to TCPDF format and store it on the fonts folder 
$fontname = TCPDF_FONTS::addTTFfont('/path-to-font/FreeSerifItalic.ttf', 'TrueTypeUnicode', '', 96); 

// use the font 
$pdf->SetFont($fontname, '', 14, '', false); 
0

最後大量的奮鬥之後我想通了MPDF最適合印地文