How to add custom fonts to Maven for Jasper Reports

I tried to follow the example on this page: http://grysz.com/2010/06/01/use-custom-fonts-in-jasperreports-pdf-exporter/ However, when I ran the reports on maven, I realized that my font is not available to the JVM at runtime as an error from tomcat. Does anyone have experience adding fonts to Maven for reporting on jasper and can give me some better instructions for this? I have tried this for too long and does not seem to work correctly. Thanks,

Patrick

+4
source share
1 answer

Using iReport, you can export fonts as an extension. Then you

  • can put your font.jar in your application and create a system dependent dependency,
  • or you can install your font in your repository.

By the way:

You can skip these error messages using jasperreports.properties.

# ignore missing fonts in reports net.sf.jasperreports.awt.ignore.missing.font=true 
+2
source

Source: https://habr.com/ru/post/1382837/


All Articles