Jump to content

Recommended Posts

Posted

Hello,

I'm using JasperReports 6.0.3 and iText 5.5.4 for generate PDF documents.

Dynamically before PDF generation I change Styles (with font size and colors) and Font to JasperReport elements (also tried modifying JasperDesign elements and recompiling)

Fonts are installed on this machine (but also tried the font-extension mechanism provided by JasperReports) The issue is that the height for text rects is not right calculated; sometimes there is too much white space, and sometimes text is not fully rendered, cutting last words.

I'm exporting in pdf so I provide this option regard Font

style.setPdfEmbedded(true);

style.setPdfFontName(fontPath + fontRelativePath.toString());

Can anyone managed using custom fonts, and had right height calculation?

 

Thank You Very Much!

Giorgio

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