Issue Description
Customer created a font extension to use AngsanaUPC font to work with Thai lang text.
They identified that some characters are not displayed properly in PDF output while in MS Excel, Word export everything looks good:
Resolution
In order to fix the issue, a property should be added to the report:
net.sf.jasperreports.export.pdf.glyph.renderer.blocks.x
<property name="net.sf.jasperreports.export.pdf.glyph.renderer.blocks.x" value="thai"/>
This bypasses iText's text layout by using Java/AWT to render the text in PDF.
After the property applied, generated PDF contains correct charactrers:
The property value is Unicode block name, case is ignored:
https://en.wikipedia.org/wiki/Unicode_block
Ref. Case 01519705
Recommended Comments