TCPDF:字体helvetica不适用于日语

问题描述:

我正在研究多语言 pdf 生成.我正在使用 tcpdf 版本 5.9.20 和字体 helvetica,它对英文字符工作正常,但显示 ????????用于日语字符.

I am working on Multilingual pdf generation. I am using tcpdf version 5.9.20, and font helvetica and it's working fine for English character, but displaying ???????? for Japanese character.

我还尝试了 arialunicid0 字体,如此处建议的 http://community.impresscms.org/modules/newbb/viewtopic.php?post_id=43480 .但是,它强制用户下载 lang-package.

I also tried arialunicid0 font as suggested here http://community.impresscms.org/modules/newbb/viewtopic.php?post_id=43480 . However, it is forcing users to download lang-package.

试试字体cid0jp",或许能解决你的问题.

Try font "cid0jp", it can probably solve your problem.

我使用这种字体成功地显示了日文和中文字符.它可以在 tfpdf 的包中找到.

I succeed in displaying Japanese and Chinese characters by using this font. It can be found in tfpdf's package.