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

How do I address text wrapping issues


mreynolds0404

Recommended Posts

After migrating from JasperReports 3.5.2 to 4.0.2, all my reports are prematurely wrapping text when exported to PDF.  After doing some forum searching, it seems the problem may have to do with font matching between the JVM and iText.  But, I have not been able to find a font pair that fixes the issue.  here is a standard font line we have in our reports that works in 3.5.2:

 

<reportFont name="normal" isDefault="false" fontName="Lucida Sans Typewriter" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
 

I tried changing the font name to Arial (we are on Windows systems) with no luck.  I also tried removing all font defs in a report and just seeing if the default fonts worked...also no luck (see attached pdf).

 

Does anyone have any tips for resolving this?  Does anyone know where in JasperReports would be a good place to debug font loading?

Link to comment
Share on other sites

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