Unable to show Hindi(Unicode) characters in BIRT generated PDF
BIRT is unable to render Hindi language characters in generated PDF file. The same design file, when rendered as Word document or HTML or any other format, I am able to see the unicode characters.
I have set Arial Unicode MS as the font type in the design file and tried with few samples from google translate. Please let me know if I'm missing anything.
Thank you.
The most probable BIRT can't find correct font files.
You have to configure pdf fonts correctly (see. file fontsconfig.xml).
I've similar issue with Cyrillic and Chinese fonts.
What I fixed in the file:
...
<font-paths>
<path path="fonts" />
<!--path path="C:/windows/fonts" />
<path path="d:/windows/fonts" />
...
<path path="/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" /-->
</font-paths>
Create fonts folder and put all necessary fonts (a bit tricky question is where fonts folder must be. It depends how you're using BIRT).
Optionally you can put correct font files in JRE/lib/fonts folder you're using.
链接地址: http://www.djcxy.com/p/88676.html