How to show arabic,Hebrew,etc language fonts on jasper (iReport) reports

后端 未结 2 1414
暖寄归人
暖寄归人 2020-11-30 13:20

I have this simple tabular report with many columns with different types .

But when printing the report with rtf (word) extension

the colum

2条回答
  •  北海茫月
    2020-11-30 14:03

    I faced similar issue with Arabic text and found above solution helps but it leads to another issues like JVM doesn't have Arial etc. And also we need to configure these properties on each and every field. Following configuration worked for me with the jasper latest versions.

    1. Use DejaVu Sans font(I used DejaVu Sans Mono)
    2. Add jasperreports-fonts dependency(In my case Jasper report version is 6.4.0 & jasper-fonts version is 6.0.0)
    3. If you need right to left layout use mirroring trick mentioned in iReport - How to change report direction to RTL?

提交回复
热议问题