我爲jasper報告使用了i-report 5.5.0。我需要將印地文文本導出爲PDF格式,但印地語部分正在轉換爲???????
。如何在導出爲PDF格式時正確顯示印地文?
我已經使用字體的擴展,但它並沒有幫助:
字體名稱: 「嘉黎梵文」
PDF內嵌:檢查
PDF 編碼:身份-H
我也試過其他印地語字體,但沒有任何工作到目前爲止..
<textField>
<reportElement x="111" y="26" width="100" height="20" uuid="5a471a16-de7b-4f55-9c9f-b01d37938b9f"/>
<textElement>
<font fontName="Lohit Devanagari" pdfEncoding="Identity-H" isPdfEmbedded="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{DISTRICT_NAME}]]></textFieldExpression>
</textField>
您是否使用了[字體擴展名](http://jasperreports.sourceforge.ne T/sample.reference /字體/ index.html的#fontextensions)? –
可能的重複:[在JasperReport中使用UTF-8創建印地語PDF](http://stackoverflow.com/q/21532766/876298)&[JasperReports中的印地語字體](http://stackoverflow.com/q/23978392/ 876298)&[賈斯珀報告在印地文PDF](http://stackoverflow.com/q/27819886/876298) –
@亞歷克斯,可能的重複沒有答案或接受的答案,用戶已嘗試字體擴展,看問題(可能不正確或ttf字體無法呈現uni代碼),這就是爲什麼我發佈了答案。 –