我正在尝试将碧 Jade 报告中的乌克兰字符显示为 pdf 文件。但它不是以 pdf 格式显示的。
当我将报告导出为所有其他格式(如 html)时,会显示 csv..ukranian char。
最佳答案
在 iReport 中设置一些文本字段属性。使用字体 DejaVu Sans。将 pdf 编码设置为 Cp1251 并将 isPdfEmbedded 设置为 true。
例如:<font fontName="DejaVu Sans" isStrikeThrough="false" pdfEncoding="Cp1251" isPdfEmbedded="true" />
jasper 将字体报告为 maven 依赖项:
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports-fonts</artifactId>
</dependency>
关于java - Jasper Report PDF 中未显示乌克兰(西里尔文)字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5093749/