且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在jasper(iReport)报告中显示阿拉伯语,希伯来语等语言字体

更新时间:2023-02-26 12:39:13

我遇到了这个问题而且非常烦人所以要做到这一点在这里明确你如何做到这一点

I faced this problem and its very annoying so to make it clear to all here how you do this

在可能有阿拉伯语内容的字段或标签上通过右键单击或在其属性托盘上转到其属性,并制作这些更改

on the field or label that may has Arabic content go to its properties by right click or on the properties pallet of it , and make these changes


  1. 选中 PDF嵌入框

  2. PDF编码中选择 Identity-H (带水平书写的Unicode)

  3. 选择字体 Arial 如果没有,请将其添加到安装目录
    中的jasper fonts文件夹中,并将其添加到类设置中的路径

  1. Check the box PDF embed
  2. Choose Identity-H (Unicode with horizontal writing) from PDF encoding
  3. Choose the font Arial if not there add it to the jasper fonts folder in the installation directory and add it to the class path in settings

在PDF模式下重新运行...它将起作用

Rerun in PDF mode ... it will work