Jump to content
JasperReports Library 7.0 is now available ×

Could not load font from location


ktrinad

Recommended Posts

By: Lifeng Wang - noodle01

Could not load font from location

2003-03-17 12:39

Hi, there

 

I got exactly same error with jbwiv.

 

Exceptions in iReport 0.0.8, but same document works fine in iReport 0.0.7 with Patch 2.

 

I'm using Pdf embedded Font, but not external font.

 

Any idea?

 

Exporting pdf to file... C:DownloadiReport-0.0.8Test.pdf

 

*************************************************************************

 

* WARNING: Failure using Thread.currentThread().getContextClassLoader() *

 

* in JRLoader class. Using JRLoader.class.getClassLoader() instead. *

 

*************************************************************************

 

dori.jasper.engine.JRException: Could not load font from location : STSong-Light

 

at dori.jasper.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:1006)

 

at dori.jasper.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:346)

 

at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:295)

 

at dori.jasper.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:217)

 

at IReportCompiler.main(IReportCompiler.java:197)

 

 

 

Abnormal termination!

 

 

 

Thanks

 

 

 

 

By: Lifeng Wang - noodle01

RE: Could not load font from location

2003-03-17 12:46

Did more research, and found that this is not a iReport bug, but a iText bug.

 

Replace itext-0.9.6.jar that coming with iReport 0.0.8 with itext-0.9.2.jar that coming with iReport 0.0.7, it solved the problem.

 

I will do more research on itext and post result here.

 

Thanks

 

 

 

 

By: Lifeng Wang - noodle01

RE: Could not load font from location

2003-03-17 12:57

Well, got more result.

 

Looks like itext has a asian characters patch at: ftp://ftp.lowagie.com/iText/iTextAsian.jar

 

After add this file into iReport-0.0.8/ilbs, even using itext-0.9.6.jar, it works fine to me.

 

Since I'm using CJK, I don't know if this will resolve all this kind of problem. You may try it with other language or character encoding.

 

Why don't we put this kind of jar files into iReport-0.0.8 together, so users don't need to get them from multiple resources?

 

Thanks

 

 

 

 

By: Lifeng Wang - noodle01

RE: Could not load font from location

2003-03-17 13:14

Well, got more result.

 

Looks like itext has a asian characters patch at: ftp://ftp.lowagie.com/iText/iTextAsian.jar

 

After add this file into iReport-0.0.8/ilbs, even using itext-0.9.6.jar, it works fine to me.

 

Since I'm using CJK, I don't know if this will resolve all this kind of problem. You may try it with other language or character encoding.

 

Why don't we put this kind of jar files into iReport-0.0.8 together, so users don't need to get them from multiple resources?

 

Thanks

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...