How to get non-English support when exporting to PDF?

I am using JasperReport version 6.2

And I want to export the report to PDF, but my report will not support languages ​​other than English (fields of other languages ​​are displayed empty),

This is my report code.

JsonDataSource ds = new JsonDataSource(JRLoader.getInputStream(jsonFile));
JasperReport jasperReport = (JasperReport)  JRLoader.loadObject(jasperFile);
parameters.put(JRParameter.REPORT_FILE_RESOLVER, new SimpleFileResolver(new File(reportDirPath)));
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, ds);
JasperExportManager.exportReportToPdfFile(jasperPrint, outputFilePath);

I created a font extension using this tutorial: " http://community.jaspersoft.com/wiki/custom-font-font-extension "

enter image description here

I export to a jar file and add to my project class path, but all fields that are not in English are still empty

The peter comment with this link was very helpful, it helped me understand if my font supports the desire language

+4
1

, (ttf) ( , pdf?), , pdf?)

: , (-) .

. : Jasper,

// , ,

+3

All Articles