Font Extension jar - Could not load the following font


I can create a font extension with pdf embed and use it in JasperSoft Studio 7.5. to export to PDF without any problems.  My issue is when I export the font extension as a jar and then delete the font extension from properties and reload it as an external jar.  When I then try to export to PDF, I get the error:

net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font: 
pdfFontName: fonts/ArialJR/arial.ttf
pdfEncoding: Cp1252
isPdfEmbedded : true
    at net.sf.jasperreports.engine.export.JRPdfExporter.getFont(
    at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(
    at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(
    at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.getPhrase(
    at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.render(
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportText(
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(

Any thoughts on what might be going on?

johno_1's picture
Joined: Jul 8 2020 - 9:15am
Last seen: 2 days 19 hours ago

0 Answers:

No answers yet