[#12131] - PDF-preview with embedded fonts in Jasperstudio >= v6.8.0

Category:
Bug report
Priority:
High
Status:
New
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

We use font extension and include the jar-file in the Java build path for some reports to embedd the font in PDF-files finally.
Since Jaspersoft Studio 6.8.0 (CE) the PDF-preview of reports within the studio(!) does't work anymore, java-preview still works.
Using Studio 6.6.0 (CE) with the same workspace still works, too.

The error message tells the font could not be loaded, but it exist, and works <= studio 6.6.0 (CE).

franky4's picture
46
Joined: Jan 5 2016 - 2:15am
Last seen: 1 week 5 days ago

2 Comments:

#1

The bug still exists in Jaspersoft Studio 6.10.0 (CE):

net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font:
pdfFontName: fonts/Tahoma_PDF/tahoma.ttf
pdfEncoding: Cp1251
isPdfEmbedded : true
at net.sf.jasperreports.engine.export.JRPdfExporter.getFont(JRPdfExporter.java:2549)
at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(JRPdfExporter.java:2332)
at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(JRPdfExporter.java:2301)
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:2662)
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)

#2
Feedback
randomness