aengla01 Posted August 1, 2006 Share Posted August 1, 2006 Hi all, I have a strange text wrapping issue. I've attached a very simple jrxml file to demonstrate the problem - just has one field in report. When I run the attached jrxml file via windows, it wraps correctly (see sample PDF). However, if I run the same report via linux/tomcat, it wraps the text incorrectly (creates an additional line for the text that it does not need) (see sample PDF). Any ideas? thanks in advance Anthony [file name=text_wrap.zip size=3283]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/text_wrap.zip[/file] Link to comment Share on other sites More sharing options...
lucianc Posted August 1, 2006 Share Posted August 1, 2006 Usually this kind of issues are caused by mismatch between Java and PDF fonts. Ideally, the Java font (specified by fontName) and the PDF font (pdfFontName) should resolve to the same physical font. Otherwise, text field heights, which are calculated at fill time using the Java font, would not match the height of the text produced by the PDF exporter. AWT uses a default font when a specific font is not available to the JVM. Is the "Times New Roman" font available in the Linux JVM? HTH,Lucian Link to comment Share on other sites More sharing options...
aengla01 Posted August 10, 2006 Author Share Posted August 10, 2006 OK - thanks - I'll look into it. Link to comment Share on other sites More sharing options...
noon Posted August 11, 2006 Share Posted August 11, 2006 aengla01 wrote:OK - thanks - I'll look into it. If you find a solution to this issue, could you be so kind and post it here. I'm having similar PDF-rendering problems on differend platforms (windows / UNIX) and this should be fixed ASAP. Link to comment Share on other sites More sharing options...
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