asy Posted May 9, 2008 Share Posted May 9, 2008 Hi, I've noticed that when I transfer my properly designed reports to a Linux environment, the calculation of space needed for certain textfields breaks (or at least behaves differently).Following situation: The report is developed on a Windows XP machine and all necessary fonts (Arial, Arial-Bold) etc are embedded into the document. Under XP it all works fine.When I now fill the same report with the same data under Linux (headless mode) it may happen that some text fields are truncated or not displayed at all. It seems that under Linux the measurement of needed space is different. It especially applies for bold text or large font sizes (> 16pt). (Dissatisfying) workarounds:For bold fonts - uncheck the checkbox in iReport that marks a textfield as bold but embed the bold font (e.g. Arial_bold.ttf) nonetheless, so it will be displayed correctly in the PDF but not in iReport.Large font sizes - increase the height of the text field over the needed size (regarding the result under Windows). After some tweaking (usually after adding 10% more height) the text will appear. You see, JR seems to have some problems with text measurement. It would be very nice if this could be fixed because it's not a surprise of the good sort if you suddenly realize that parts of your report are missing. Thanks in advance! Regards Link to comment Share on other sites More sharing options...
lucianc Posted May 9, 2008 Share Posted May 9, 2008 Read this related FAQ. We are open to any suggestions on how to improve the font management in JasperReports. Regards,Lucian Link to comment Share on other sites More sharing options...
asy Posted May 9, 2008 Author Share Posted May 9, 2008 lucianc wrote:Read this related FAQ. Thanks for your quick reply!I thought that putting the fonts in the classpath would be enough but obviously it wasn't. Just added the fonts to jre/lib/fonts/ and now it works as expected.Have a very nice weekend! :-) Kind regards 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