danfickle / openhtmltopdf

An HTML to PDF library for the JVM. Based on Flying Saucer and Apache PDF-BOX 2. With SVG image support. Now also with accessible PDF support (WCAG, Section 508, PDF/UA)!
https://danfickle.github.io/pdf-templates/index.html
Other
1.93k stars 359 forks source link

Tamil font not rendering well. #925

Open peakkyblinder opened 1 year ago

peakkyblinder commented 1 year ago

Font Used: Noto Sans Tamil Actual Output:

Screenshot 2023-04-08 at 4 40 24 PM

Expected output:

Screenshot 2023-04-08 at 4 39 05 PM

Code:

PdfRendererBuilder() .withW3cDocument(xmlDocument, null) .useFont(FONT_FILE, "noto-sans") .toStream(byteArrayOutputStream) .run()