Jump to content

Error with fonts in JasperReport: getAwtFontFrom..


luis-vieira

Recommended Posts


Good morning guys, 

I'm trying to generate a report with iReport/Jasper/JBoss

I already debugged all project and everything happens

normally until the moment of generating the report


The message Error:

 
  1. getAwtFontFromBundles Arial  
  2. getAwtFontFromBundles returning: null  


I got many erros like this, in my count i have the same number of error that the number of labels in my report.

 

 

Thanks for attetion.

 



Post Edited by luis-vieira at 11/04/2009 12:49
Link to comment
Share on other sites

  • 4 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi,

 

I don't think this is the error message that JasperReports raises.

These must be some log trace statements that you have put yourself in the code somewhere when debugging.

 

In any case, what JasperRerports tries to tell you by raising the exception is that you are using fonts that are not available on the machine where you are running. If you use Arial in your reports, but run on Linux, you probably notices by now that there is no Arial font on Linux.

 

All you need to know is explained in the Javadoc here:

http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/util/JRFontNotFoundException.html

 

(I'm pretty sure the exception message already pointed you to this piece of Javadoc, and no debugging would have been required.)

 

I hope this helps.
Teodor

 

Link to comment
Share on other sites

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...