AndreRenaud / PDFGen

Simple C PDF Writer/Generation library
The Unlicense
504 stars 120 forks source link

How to support Chinese text pdf, how to add fonts #153

Open Reyn-JHR opened 1 month ago

Reyn-JHR commented 1 month ago

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

AndreRenaud commented 1 month ago

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