Jump to content
  • JFreeChart is not force the pdf font settings submitted by JasperReports


    dtrehas
    Assigned User teodord
    CategoryBug report
    PriorityNormal
    ReproducibilityAlways
    ResolutionFixed
    SeverityMinor
    StatusClosed

    Hello to all!

     

    I would like to build PDF Chart reports that use Unicode fonts.

    So, I bundle the necessary unicode fonts (with Greek letters)

    and I set PDF Encoding Identity-H for static fields. This works for me!

     

    But when I tried to use JasperReports with JFreeCharts

    I change the chart title font with the same settings

    (right font, Identity-H, PDF embedded)

     

    This does not work. JFreeChart does not change its

    font settings when produces PDF file and then I can not see Greek letters.

     

    Could you check this?

     

    Thanx in advance,

    Dimitris

     

     

    P.S. I has attached the necessary files to check.


    Attachments: Attachments.zip

    User Feedback

    Recommended Comments

     

    Hi,

     

    I suspect you came across a little bug introduced in JR 1.2.8. Fortunately is easy to fix and I suggest you try this:

     

    Create a jasperreports.properties file and put it in the root of your application classpath (if you don\'t have such a file already).

    Add the following property to this file:

     

    net.sf.jasperreports.export.pdf.force.svg.shapes=true

     

    Let me know if this solves anything.

     

    Thank you,

    Teodor

     

    Link to comment
    Share on other sites

    Thank you very much for your support Teodor :)

    I was absent for many days..

     

    On 1/4/07, JasperForge Administrator wrote:

    >

    >

    > artf1865: JFreeChart is not force the pdf font settings submitted by

    > JasperReports

    >

    > Modified on 01/04/2007 by Teodor Danciu

    >

    > Comment was added:

    >

    > Hi,

    >

    > This should be now fixed in JR 1.3.0.

    > Please let us know.

    >

    > Thank you,

    > Teodor

    >

    >

    > Respond by visiting:

    > http://www.jasperforge.org/sf/go/artf1865

    >

    > ---------------------------------------------------------------------

    > Artifact details:-

    >

    > Project: JasperReports

    > Tracker: Bugs

    >

    > Group:

    > Status: Open

    > Category:

    > Customer:

    > Priority: 4

    > Assigned To: No user

    > Reported in release: none

    > Fixed in release: none

    > Estimated Hours: 0

    > Actual Hours: 0

    >

    > Description: Hello to all!

    >

    > I would like to build PDF Chart reports that use Unicode fonts.

    > So, I bundle the necessary unicode fonts (with Greek letters)

    > and I set PDF Encoding Identity-H for static fields. This works for me!

    >

    > But when I tried to use JasperReports with JFreeCharts

    > I change the chart title font with the same settings

    > (right font, Identity-H, PDF embedded)

    >

    > This does not work. JFreeChart does not change its

    > font settings when produces PDF file and then I can not see Greek letters.

    >

    > Could you check this?

    >

    > Thanx in advance,

    > Dimitris

    >

    >

    > P.S. I has attached the necessary files to check.

    >

    >

     

    Link to comment
    Share on other sites


×
×
  • Create New...