Could Not Load the following Font



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(
    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(

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: 1 week 3 days ago

0 Answers:

No answers yet