I think you know that those default fonts in Phoca PDF component can not handle Chinese language (utf-8 characters). So, I have to use a custom font.
In fact, this is not too difficult to find. Because we already have used DroidSansFallback font on Joomla 1.5 as the default pdf-font for zh-CN language. Now, I only need to pack it up as a font installer for Phoca PDF.
This is also not too difficult. I made a zip file containing my DroidSansFallback font files (DroidSansFallback.ctg.z, DroidSansFallback.php,
DroidSansFallback.z ). And I installed this font package via Phoca PDF's font installer.
Everything seems OK, right?
Then I clicked the PDF link in my article, the article has some Chinese words in it.
PDF file generated. But, when I open it, it was in a mess, there is no any readable text characters but some squeezed symbols.
I think this is a bug of Phoca PDF itself.
Why I am so sure? Becuase those 3 files of DroidSansFallback fonts, were exactly the files I had used on Joomla 1.5 for PDF generating. They can work fine on Joomla 1.5 (with TCPDF library then), but now can not work with Phoca PDF.
So I suspect that Phoca PDF has something wrong.
Please check this and fix it. Thanks.





