2
I created a report in iReport that contains formatting (fonts, bold and italics). In the iReport’s own preview it appears correctly, but when used within a Demoiselle-jsf-jpa project and exported to PDF, it does not obey the formatting.
I followed the wiki below the Jaspersoft community, which explains how to use the "font Extensions" feature to solve the problem:
http://community.jaspersoft.com/wiki/bold-and-underlined-fonts-not-rendering-pdf
In short, iReports creates a JAR with the fonts and their variations, which must be placed in the "Classpath". Is this the same as building the path? I tried for Eclipse by adding the JAR to the build path, but it didn’t solve.
Someone has already been through this problem and managed to solve?
Demoiselle-jsf-jpa 2.4.2
Jasperreports and iReport 4.0.1
Fernando
Thanks, buddy, but it didn’t work. I even downloaded the "standard" Jasper font JAR (http://sourceforge.net/projects/jasperreports/files/archive/jasperreports/JasperReports%204.0.1/jasperreports-fonts-4.0.1.jar/download) and tried to use the "Dejavu Sans" font, which is already pre-configured, but it’s worse.. instead of not showing the formatting, it gives the net.sf.jasperreports.engine.util error.Jrfontnotfoundexception: Font 'Dejavu Sans' is not available to the JVM. I tried to put in the classpath via -classpath parameter, in the CLASSPATH environment variable, in the Buildpath along with the report file, and nothing.
– Fernando Camillo
Did you put it in the report module of your project? Because Jasper or Ireport will work filet, the problem is that your project does not understand the format you are sending! Try to put the . jar in your project library!
– Julio Cesar da Silva Barros
That’s right, my friend. When I was generating WAR for the server, the source JAR file was not being included in the lib folder. When I manually included it worked. Thank you.
– Fernando Camillo