如何在jasper(iReport)报告中显示阿拉伯语,希伯来语等语言字体 [英] How to show arabic,Hebrew,etc language fonts on jasper (iReport) reports
问题描述
我有这个简单的表格报告,其中包含许多不同类型的列。
I have this simple tabular report with many columns with different types .
但是当使用 rtf(word)扩展名打印报告时
But when printing the report with rtf (word) extension
报告上显示带有数字或日期的列
。
带有阿拉伯语的列内容显示在报告上
。
the columns with numbers or date appears on the report
.
the columns with with Arabic content appear on the report
.
但是当使用 PDF 扩展名<打印报告时
But when printing the report with PDF extension
报告上显示带有数字或日期的列
。
带有阿拉伯语的列内容 DOSE NOT 出现在报告上
。
the columns with numbers or date appears on the report
.
the columns with with Arabic content DOSE NOT appear on the report
.
知道我尝试了很多不同的字体和更改了PDF嵌入和PDF编码等属性。
这样做的正确方法是什么?
Knowing am tried many different fonts and changed properties like PDF embed and PDF encoding. What is the right way to do this ?
推荐答案
我遇到了这个问题而且非常烦人所以要做到这一点在这里明确你如何做到这一点
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
- 选中
PDF嵌入框
- 从
PDF编码中选择
Identity-H
(带水平书写的Unicode) - 选择字体
Arial
如果没有,请将其添加到安装目录
中的jasper fonts文件夹中,并将其添加到类设置中的路径
- Check the box
PDF embed
- Choose
Identity-H
(Unicode with horizontal writing) fromPDF encoding
- Choose the font
Arial
if not there add it to the jasper fonts folder in the installation directory and add it to theclass path in settings
在PDF模式下重新运行...它将起作用
Rerun in PDF mode ... it will work
这篇关于如何在jasper(iReport)报告中显示阿拉伯语,希伯来语等语言字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!