baerwester Posted August 23, 2012 Share Posted August 23, 2012 our application uses jasper 3.7.1 on windows. At one or our installations, reports don't print and in the log we findFont 'Arial' is not available to the JVM. See the Javadoc for more details.This is only happening at one installation.We get them on the air with the ignore missing fonts property, but we agree that that is not really a good solution. We find in the file system: c:\windows\fonts\arial.ttf which leads us to conclude that arial is or should be available.We want our application to be standard across all of our installations. A font extension package doesn't seem like the answer as all of our other installations can find arial without a font extension. Also, we prefer not to modiy the jrxmls to resolve a situation at one installation as the jrxmls work at all of our other installationsCan anybody suggest what we might look at?Thanks for any ideas, suggestions or insights Link to comment Share on other sites More sharing options...
chinnu9999 Posted August 27, 2012 Share Posted August 27, 2012 hi, i faced the same problem last week when we migrated from Jasper reports 1.2.x to 4.5.1. Following links might help solve this:http://community.jaspersoft.com/questions/530776/need-help-361-and-jrfontnotfoundexceptionhttp://community.jaspersoft.com/questions/542679/font-provided-font-extension-not-working-charts-or-pdf-export http://stackoverflow.com/questions/3811908/jvm-fonts-and-jasperreports http://mdahlman.wordpress.com/2010/05/28/jaspersoft-v3-7-font-extensions/ At last we have decided that we will install the missing font on linux (JVM) . Install font “Arial” on Linux:==================== Step1:Check whether font "Arial" is already installed on the box : ============================================================== log in with any user name and type the following command : fc-list | grep Arial if found no need to install the font. Step2:Install the font "Arial" if not available on the box: ======================================================= 1)log in as root 2)move to /usr/share/fonts and create a folder with name as "truetype". 3)copy the font file "Arial.ttf" (found in windows/fonts on WinXp) into the folder "truetype". 4)run the command following command to see whether the font is installed properly fc-list | grep Arial Thanks,Chinnu Link to comment Share on other sites More sharing options...
baerwester Posted August 27, 2012 Author Share Posted August 27, 2012 Thanks for replying. However our application runs in windows, not unix/ linux. We hope for help with a windows solution Link to comment Share on other sites More sharing options...
hari1980 Posted August 28, 2012 Share Posted August 28, 2012 Our application also uses the similar jasper 3.7.1 on windows. During runtime of Jasper report the log shows Font 'Arial' is not available to the JVM. See the Javadoc for more detailsMoreover,I am new to Jasper report. please guide me the solution ASAP. Please guide.Appreciate your help. Thanks. The log details below for your reference. net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'Code 39' is not available to the JVM. See the Javadoc for more details. at net.sf.jasperreports.engine.util.JRFontUtil.checkAwtFont(JRFontUtil.java:321) at net.sf.jasperreports.engine.util.JRStyledText.getAwtAttributedString(JRStyledText.java:226) at net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:362) at net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:1008) at net.sf.jasperreports.engine.fill.JRFillTextField.prepare(JRFillTextField.java:539) at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:327) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:402) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:361) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2013) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:749) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:252) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:110) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:923) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:845) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:85) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624) at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:513) at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:465) Regards,Hari Link to comment Share on other sites More sharing options...
hari1980 Posted August 28, 2012 Share Posted August 28, 2012 Hi I am also facing similar issue. Are you able to get any tips? Thanks. 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