I am using JasperReports 6.3.1. I solved the problem by adding the following line to my .jrxml :
<property name="net.sf.jasperreports.awt.ignore.missing.font" value="true"/>
Thus, our report will look different, depending on the fonts preinstalled in the system. In my case, this is not a problem, and I am not interested in adding an extra font to my project, since I need to be as light as possible.
If you want to use the original report fonts in all runtime environments, a simple solution is to add the necessary dependencies to the project.
Example for Maven:
<dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports-fonts</artifactId> <version>6.0.0</version> </dependency>
You can also load libraries and add them manually to the project, however it will work.
I hope you find them useful.
cesAR Nov 15 '16 at 15:02 2016-11-15 15:02
source share