I'm trying to generate report with DynamicJasper, but I'm getting the following error:
net.sf.jasperreports.engine.util.JRFontNotFoundException:
Font 'Arial' is not available to the JVM.
msttcorefonts is installed, but I guess the JVM is not using any fonts from it.
I'm using Ubuntu 10.04.
How can I fix this?
I use IReport to install font:
Then select the font and click
add this jar and also spring.jar* to your build path.
*copy spring.jar from Jaspersoft\iReport-3.7.0\ireport\modules\ext
can make your custom fonts via iReport and converting like jars files
For Debian
add
to deb and deb-src in /etc/apt/sources.list ie:
Then
Of course you'll need to restart jasperserver. ie:
Change for your version / path.
There are three method to avoid such a problem.
Method 1 : by setting ignore missing font property.
or you can set this property by entering following line into .jrxml file.
Method 2 : by setting default font property.
or you can set this property by entering following line into .jrxml file.
Method 3 : by adding missing font property.
Firstly install missing fonts in IReport by selecting " Tools >> Options >> Fonts >> Install Font " then select the all font and Export this By clicking on "Export as Extension" with .jar Extension.
You can use this jar for Jasperreports-font.X.X.X.jar which will be present in your project library or classpath.
I faced the issue with my web application based on Spring 3 and deployed on Weblogic 10.3 on Oracle Linux 6. The solution mentioned at the link did not work for me.
I had to take the following steps - 1. Copy the Arial*.ttf font files to JROCKIT_JAVA_HOME/jre/lib/fonts directory 2. Make entries of the fonts in fontconfig.properties.src 3. Restart the cluster from Weblogic console
Copy your Fonts on the following directory JDK_HOME\jre\lib\fonts