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

Fonts width calculation error !!!


ifcwlme

Recommended Posts

If a textfield have many character, almost clost to the boundry of the textfield. It will stretch to consume more one line. But it is not necessary to use two lines.

So, in my report, some lines are double spaced in line height. How can I solve this problem ?

Can anyone help ?

Thanks

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

I've found solution to this problem.

It is because the fonts used to fill report is different with fonts used to export PDF. Although the pdfFontName is deprecated, But iText use it actually.

I have to make sure JVM have install my fonts used in my report. And use FontMap to map the fonts when export pdf.

Link to comment
Share on other sites

  • 3 months later...

Hi Teodor,

 

I'm currently using an older version of JR (3.1.2), and have exactly the same problem too. Now if update my lib to jasperreports 3.7.1 (using maven), should I additionally add a dependancy for the jasperreports-fonts-3.7.1?

 

And also, i need some hints regarding updating to 3.7.1:

right now I have some jrxml-files which was created using IReports 3.0.0. Do I have to recreate all the jrxml files using IReports 3.7.1, in order for these to be compilable using the 3.7.1-library? Or is there any better way to do this?

Thanks a lot

Link to comment
Share on other sites

  • 8 months later...

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