PDFGen icon indicating copy to clipboard operation
PDFGen copied to clipboard

How to support Chinese text pdf, how to add fonts

Open Reyn-JHR opened this issue 1 year ago • 1 comments

怎么支持中文文本的pdf,怎么自己加入字体

Reyn-JHR avatar Sep 20 '24 08:09 Reyn-JHR

PDFGen only support the fonts builtin to the PDF standard. It currently doesn't support adding custom fonts. The PDF standard fonts really only cover latin characters (see appendix D of https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/pdfreference1.7old.pdf). To support other character sets it would need custom font support added, which has been looked at, but is not really in the works at the moment.

This is really the same as the Unicode issue - https://github.com/AndreRenaud/PDFGen/issues/128

AndreRenaud avatar Sep 20 '24 09:09 AndreRenaud