OpenPDF icon indicating copy to clipboard operation
OpenPDF copied to clipboard

PDF Fonts - charachter-by-character

Open dbschema-pro opened this issue 2 years ago • 0 comments
trafficstars

I automatically generate PDF for text in different languages: englisch, cyrillic, chinese, japanese, etc. I saw this article about font-selection-strategy=character-by-character and fallback fonts.

How can I make use of this feature in OpenPDF, so I use pdfContentByte.setFont("Segoe UI", 12) and in case some words are in chinese, they will render correctly?

dbschema-pro avatar Jan 15 '23 11:01 dbschema-pro