Jump to content
We've recently updated our Privacy Statement, available here ×

d.artini

Members
  • Posts

    4
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by d.artini

  1. Hi,

    i'am using jasperport engine with font extensions to generate a pdf file

    for example: i'have done an Arial.jar from iReport and put it into the CLASSPATH.

     

    than to generate the pdf i use an own small java class (from command line) with arguments:

    - Data source (xml)

    - File. Jasper report

    - Name of the pdf

    and pass them to the jasperreport engine

     

    now with jasperreport 5.2 it works fine   (even in version 5.0 works fine)

    while in the version 5.5 i get this error:

    net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'Arial' is not available to the JVM. See the Javadoc for more details.

            at net.sf.jasperreports.engine.fonts.FontUtil.checkAwtFont(FontUtil.java:347)

            at net.sf.jasperreports.engine.fonts.FontUtil.getAwtFontFromBundles(FontUtil.java:295)

            at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.loadFont(SimpleTextLineWrapper.java:365)

            at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.getGeneralFontInfo(SimpleTextLineWrapper.java:339)

            at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.createFontInfo(SimpleTextLineWrapper.java:279)

            at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.start(SimpleTextLineWrapper.java:241)

            at net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:411)

            at net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:621)

            at net.sf.jasperreports.engine.fill.JRFillStaticText.prepare(JRFillStaticText.java:187)

            at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:331)

            at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:384)

            at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:358)

            at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2059)

            at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupHeader(JRVerticalFiller.java:639)

            at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupHeaders(JRVerticalFiller.java:561)

            at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:286)

            at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:151)

            at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:932)

            at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:864)

            at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:114)

            at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:653)

            at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:569)

            at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:915)

     


     

    why

    there is some difference between the two version

    about the fonts ?

     

    many thanks

    Daniele

×
×
  • Create New...