Could Not Load the following Font

1

Hi,

I am sorry for the repeated question, but I did not find the right solution. I simply added an external font to Jaspersoft Studio following the official instructions. After that I created the .jar to import as external jar from project's properties. If I do that I get the following error:

net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font: 
pdfFontName: fonts/HelveticaNeue/HelveticaNeueFont.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.doPreview(AExportAction.java:347)
    at com.jaspersoft.studio.editor.preview.actions.export.AExportAction$3.run(AExportAction.java:191)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
 

If I do not do that the pdf run fine, with Maven as well, but the font is not embedded!!!!!!

How can I solve this problem?

Thank you in advance

emanuele.a89's picture
Joined: Dec 12 2017 - 8:49am
Last seen: 5 months 3 weeks ago

Аналогично, а ответа нет.

net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font: 
pdfFontName: ArialRegular
pdfEncoding: Cp1251
isPdfEmbedded : true
    at net.sf.jasperreports.engine.export.JRPdfExporter.getFont(JRPdfExporter.java:2756)
    at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(JRPdfExporter.java:2539)
    at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(JRPdfExporter.java:2508)
    at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.renderParagraph(SimplePdfTextRenderer.java:149)......

https://community.jaspersoft.com/wiki/how-render-cyrillic-symbols-pdf-an...

https://community.jaspersoft.com/wiki/custom-font-font-extension

this does not work

jasperreports-6.15.0

Tino Ajato - 3 months 8 hours ago

0 Answers:

No answers yet
Feedback