2006 IR Open Discussion Posted August 20, 2006 Share Posted August 20, 2006 By: bertram gong - bertram_gong Chinese character STSongStd-light 2003-02-13 19:23 Can you help? The font setup as: <reportFont name="Arial_Normal" isDefault="true" fontName="SimSun" size="14" pdfFontName="STSongStd-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="false"/> The error is: ************************************************************************* * WARNING: Failure using Thread.currentThread().getContextClassLoader() * * in JRLoader class. Using JRLoader.class.getClassLoader() instead. * ************************************************************************* dori.jasper.engine.JRException: Could not load font from location : STSongStd-Li ght at dori.jasper.engine.export.JRPdfExporter.exportText(JRPdfExporter.java :850) at dori.jasper.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java :316) at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExp orter.java:270) at dori.jasper.engine.export.JRPdfExporter.exportReport(JRPdfExporter.ja va:214) at dori.jasper.engine.JasperExportManager.exportReportToPdfFile(JasperEx portManager.java:135) at dori.jasper.engine.JasperRunManager.runReportToPdfFile(JasperRunManag er.java:111) at JasperApp.main(JasperApp.java:237) Thanks By: bertram gong - bertram_gong RE: Chinese character STSongStd-light 2003-02-14 00:47 I have solved this problem, caused by itext-0.96.jar. Should use itext-0.93b Bertram By: Paulo Soares - psoares33 RE: Chinese character STSongStd-light 2003-02-14 02:24 The problem is not itext-0.96.jar. You also need http://itext.sourceforge.net/downloads/iTextAsian.jar By: bertram gong - bertram_gong RE: Chinese character STSongStd-light 2003-02-25 19:18 Thanks, Chinese character can't display in jsp using PDF outputstream, Have any suggestion? Bertram By: bertram gong - bertram_gong RE: Chinese character STSongStd-light 2003-02-25 23:59 For jsp+pdf+outputstream The hardcoded chinese character in report XML file can display, and those retrieved from database can't display correctly. But all work by java applicaiton not jsp. How to solve it? Thanks By: acajax - liufenghuixue RE: Chinese character STSongStd-light 2003-05-15 23:45 I has the same problem:the data retrieved from Mysql database can not display correctly.(I only exchanged some codes in the demmo/samples/query) By: acajax - liufenghuixue RE: Chinese character STSongStd-light 2003-05-19 20:57 I have put the iTextAsian.jar in the jasperreport/lib. The code is : The font setup as: <reportFont name="Arial_Normal" isDefault="true" fontName="Fangsong_gb2312" size="14" pdfFontName="STSongStd-Light" pdfEncoding="UniGB-UCS2-H" isPdfEmbedded="false"/> When I generate the pdf file.The ereor is: Could not load font from location:STSongStd-Light. Anyone can help me? By: Teodor Danciu - teodord RE: Chinese character STSongStd-light 2003-12-19 15:29 Hi, The JasperReports code was updated on the CVS to give more details about the cause of the exception. I hope this helps. Teodor 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