Jump to content
JasperReports Library 7.0 is now available ×


Recommended Posts


     im using Jasper report with php. how can i add new true type fonts with jasper report. i had done the following steps to add new fonts but it is giving me error

     1. Edited jasperreports_extension.properties and added the following lines


     2. added the following line in fonts.xml in net/sf/jasperreports/fonts

<fontfamilies>    <fontfamily name="Mistral">        <normal><!--[CDATA[Mistral.TTF]]--></normal>        <bold><!--[CDATA[Mistral.TTF]]--></bold>        <italic><!--[CDATA[Mistral.TTF]]--></italic>        <bolditalic><!--[CDATA[Mistral.TTF]]--></bolditalic>        <pdfembedded><!--[CDATA[true]]--></pdfembedded>    </fontfamily></fontfamilies>

and im getting the following error

Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:JasperExportManager]]->exportReportToPdfFile((o:JasperPrint)[o:JasperPrint], (o:String)[o:String]). Cause: net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font : pdfFontName : Mistral pdfEncoding : Cp1252 isPdfEmbedded : false VM: 1.6.0_24@http://java.sun.com/" at:#-18 net.sf.jasperreports.engine.export.JRPdfExporter.getFont(JRPdfExporter.java:1961) #-17 net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(JRPdfExporter.java:1725) #-16 net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(JRPdfExporter.java:1694) #0 /mount1/imeddoc/dev/JasperReports/includes/javabridge.php(338): java_ThrowExceptionProxyFactory->getProxy(12, '@V', 'Could not load ...', true) #1 /mount1/imeddoc/dev/JasperReports/includes/javabridge.php(495): java_Arg->getResult(true) #2 /mount1/imeddoc/dev/JasperReports/includes/javabridge.php(501): java_Client->getWrappedResult(true) #3 /mount1/imeddoc/dev/JasperReports/includes/javabridge.php(705) in /mount1/imeddoc/dev/JasperReports/includes/javabridge.php on line 301

Can anyone help me as a matter of urgency please.

Thanks in advance






Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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