javamicronautexport-to-pdfjaspersoft-studio

Font used in Jaspersoft isn't available in JVM


I'm getting an net.sf.jasperreports.engine.util.JRFontNotFoundException. I've already added the font in Jaspersoft Studio like how it was described here: When export a report to PDF change the font .

I've also exported the font extension and placed the jar where my classpath can see it like how it was described here: How can I display "$£Ω€απ⅔" in Jasperserver PDF using iReport? .

I'm still getting the error. Does anybody know any other solution that might help? Thanks in advance.


Solution

  • I solved this problem by exporting it as .zip instead of .jar, extracting the contents of the .zip and placing them under classpath.

    More details on this in this blog (Solution 3): http://poor-developer.blogspot.com/2017/02/jasper-reports-using-unavailable-fonts.html