2005 IR Help Posted September 2, 2006 Share Posted September 2, 2006 By: Kris - klindp Could not load the following font 2005-07-15 02:28 I am getting this error : I am using ireport 0.5.0 to generate the jrxml file. and JasperReport 0.6.7 net.sf.jasperreports.engine.JRException: Could not load the following font : pdfFontName : Helvetica pdfEncoding : CP1252 isPdfEmbedded : false at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(JRPdfExporter.java:1454) at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(JRPdfExporter.java:1406) at net.sf.jasperreports.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:1694) at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:455) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:395) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:262) at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:126) at Test.main(Test.java:33) By: Andrey - andfedotov RE: Could not load the following font 2005-07-25 02:01 In order to export your report using some font it (*.ttf file) should be placed to your classpath (so that JasperReports could find it). In the design of your report use pdfFontName="Helvetica.TTF" Link to comment Share on other sites More sharing options...
xwcheng Posted June 25, 2007 Share Posted June 25, 2007 Dear, you can do the following steps to solve your problem:1: download the iTextAsian.jar and iTextAsianCmaps.jar from the http://www.lowagie.com/iText/download.html. these two packages support the asian font. By default ireport does not include them2: copy the downloaded two jars into lib folder of your ireport3: set the correct pdf font name and pdf encoding name for your textPost edited by: Cheng.Ken, at: 2007/06/25 04:56 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