giorgioval87 Posted February 10, 2015 Posted February 10, 2015 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 Fontstyle.setPdfEmbedded(true);style.setPdfFontName(fontPath + fontRelativePath.toString());Can anyone managed using custom fonts, and had right height calculation? Thank You Very Much!Giorgio
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now