tcpdf encode chinese character

坚强是说给别人听的谎言 提交于 2019-12-05 13:41:48

You need to use unicode supporting font, like you can use stsongstdlight font for chinese. Hope it helps

try this

$pdf->SetFont('kozminproregular', '', 12);

It just helped me. Hope it also helps u.

I managed to get it to work with the Arial Unicode font.

$pdf->SetFont('arialuni', '', 12);

Only issue is it's $165 http://www.fonts.com/font/ascender/arial-unicode

I found this copy all files to tcpdf/fonts and now I can just use it with $pdf->SetFont('DroidSansFallback', '', 8, '', false);

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!