Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add custom fonts on Maven for Jasper Reports

I been trying to follow the example on this page: http://grysz.com/2010/06/01/use-custom-fonts-in-jasperreports-pdf-exporter/ Still, when I ran the reports on maven, I get that my font is not available to the JVM at run-time as an error from tomcat. Anyone has had experience adding fonts to Maven for a jasper report and can give me a little better instructions to accomplish this? I been trying this already for too long and it does not seem to work correctly. Thanks,

Patrick

like image 221
Truesky Avatar asked Nov 04 '22 10:11

Truesky


1 Answers

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

  1. can place your font.jar in your application and create an system-scope-dependency,
  2. or you can maven install your font into your repository.

By the way:

You can skip those error-messages using the jasperreports.properties.

# ignore missing fonts in reports
net.sf.jasperreports.awt.ignore.missing.font=true
like image 110
Grim Avatar answered Nov 09 '22 08:11

Grim