Font Extension jar - Could not load the following font

0

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(JRPdfExporter.java:2585)
    at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(JRPdfExporter.java:2368)
    at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(JRPdfExporter.java:2337)
    at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.getPhrase(SimplePdfTextRenderer.java:64)
    at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.render(SimplePdfTextRenderer.java:73)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:2698)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:1104)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:1063)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:927)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:547)
    at com.jaspersoft.studio.editor.preview.actions.export.AExportAction.exportWithProgress(AExportAction.java:223)
    at com.jaspersoft.studio.editor.preview.actions.export.AExportAction.doExport(AExportAction.java:308)
    at com.jaspersoft.studio.editor.preview.actions.export.AExportAction$2.run(AExportAction.java:161)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
 

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
Feedback
randomness