2004 IR Help Posted August 20, 2006 Share Posted August 20, 2006 By: Antonio Martel Rodriguez - amartel Could not load the following font 2005-02-10 03:44 I've got an exception when I run my webapp with JDeveloper: 05/02/10 10:58:12 java.io.IOException: VERDANAB.TTF not found as file or resource. 05/02/10 10:58:12 at com.lowagie.text.pdf.RandomAccessFileOrArray.<init>(Unknown Source) 05/02/10 10:58:12 net.sf.jasperreports.engine.JRException: Could not load the following font : pdfFontName : VERDANAB.TTF pdfEncoding : Cp1252 isPdfEmbedded : true I'm using iReport to create the .jrxml and .jasper file and they were created without any problem (the pdf is shown correctly). The set up for the static text is: Font name: Verdana / PDF Font name: External TTF font / True Type Font: VERDANAB.TTF / Bold: True / PDF Embedded: True / PDF Encoding: CP1252 (Western European ANSI aka WinAnsi). If I change the font for arial.ttf I get the same exception. If I check up the .jrxml file it includes Cp1252 and not CP1252. I'm using IReport 0.4.1, itext-1.1 and jasperreports-0.6.3 (I've also tried with IReport 0.4.0 and itext-1.01). The CLASSPATH variable includes the location to the Fonts in system (c:WINNTFonts). Does anyone know why my webapp can't get the VERDANAB.TTF location? I've even included c:WINNTFonts as a 'Additional Classpath' in Jdeveloper and I've set up a folder with a few fonts as a Library for the project. Am I missing something? Any help would be greatly appreciated. Regards 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