vladimirkotulskiy Posted March 3, 2014 Share Posted March 3, 2014 Here is the font settings I used to add new font with cyrillic. But I got the following error message when I tried to preview this report in studio as PDF java.lang.reflect.InvocationTargetException at com.jaspersoft.studio.editor.preview.actions.export.AbstractExportAction$1.run(AbstractExportAction.java:122) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)Caused by: net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font :pdfFontName : ArialpdfEncoding : Identity-HisPdfEmbedded : true at net.sf.jasperreports.engine.export.JRPdfExporter.getFont(JRPdfExporter.java:2037) at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(JRPdfExporter.java:1818) at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(JRPdfExporter.java:1787) at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.getPhrase(SimplePdfTextRenderer.java:89) at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.render(SimplePdfTextRenderer.java:100) at net.sf.jasperreports.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:2158) at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:861) at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:821) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:698) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:420) at com.jaspersoft.studio.editor.preview.actions.export.AbstractExportAction.exportWithProgress(AbstractExportAction.java:219) at com.jaspersoft.studio.editor.preview.actions.export.AbstractExportAction$1.run(AbstractExportAction.java:119) ... 1 more Link to comment Share on other sites More sharing options...
vladimirkotulskiy Posted March 3, 2014 Author Share Posted March 3, 2014 Here is content of the Jar file created by Jaspersoft Studio via Export Font. I am not sure if it is correct and how to fix it./sites/default/files/images/Font_jar.jpg Link to comment Share on other sites More sharing options...
hozawa Posted March 3, 2014 Share Posted March 3, 2014 Which version of Studio are you using? 5.5.0 contains bugs so use 5.5.1 or 5.2.0. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now