rbojja Posted November 3, 2008 Share Posted November 3, 2008 HiUsing iReport i am adding underline to the text on my rpeort.The underline is displayed.But the issue is underline is too close to the text almost touching every character of the text when i print the report.Can some one help me on this issue.Its a production support issue. Thanks Link to comment Share on other sites More sharing options...
lucianc Posted November 4, 2008 Share Posted November 4, 2008 What JRE are you using? Apparently Sun fixed something related to underlines being too close to the text in 1.6, according to this bug.Regards,Lucian Link to comment Share on other sites More sharing options...
rbojja Posted November 4, 2008 Author Share Posted November 4, 2008 Hi,I am using JRE 1.4 Link to comment Share on other sites More sharing options...
lucianc Posted November 5, 2008 Share Posted November 5, 2008 Well, unless you're considering an upgrade to Java 1.6, there's nothing much you can do. That's how Java renders underlined text by default.Still, note that in JasperReports, the isUnderline attribute translates to TextAttribute.UNDERLINE_ON. One could achieve lower underline even in Java < 1.6 by using TextAttribute.UNDERLINE_LOW_ONE_PIXEL instead. However, this is not currently supported by JasperReports.Regards,Lucian 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