ifcwlme Posted November 23, 2009 Share Posted November 23, 2009 If a textfield have many character, almost clost to the boundry of the textfield. It will stretch to consume more one line. But it is not necessary to use two lines.So, in my report, some lines are double spaced in line height. How can I solve this problem ?Can anyone help ?Thanks Link to comment Share on other sites More sharing options...
nmn Posted November 23, 2009 Share Posted November 23, 2009 i think you should attach a screen shot about your problem. Link to comment Share on other sites More sharing options...
ifcwlme Posted November 24, 2009 Author Share Posted November 24, 2009 When I make the sample file. I found that the problem only happen in Linux. I copy the same testing code to Windows. It works.Do you know how can I fix this ?Thanks Link to comment Share on other sites More sharing options...
ifcwlme Posted November 24, 2009 Author Share Posted November 24, 2009 I've found solution to this problem.It is because the fonts used to fill report is different with fonts used to export PDF. Although the pdfFontName is deprecated, But iText use it actually.I have to make sure JVM have install my fonts used in my report. And use FontMap to map the fonts when export pdf. Link to comment Share on other sites More sharing options...
Teodor Danciu Posted November 24, 2009 Share Posted November 24, 2009 Hi, FONT_MAP is also deprecated these days. Please upgrade to a recent JR version and make use of font extension JARs, like the one that you can build from the /demo/fonts folder of the JR project, or download from the JR download page. I hope this helps.Teodor Link to comment Share on other sites More sharing options...
psentosa Posted February 26, 2010 Share Posted February 26, 2010 Hi Teodor, I'm currently using an older version of JR (3.1.2), and have exactly the same problem too. Now if update my lib to jasperreports 3.7.1 (using maven), should I additionally add a dependancy for the jasperreports-fonts-3.7.1? And also, i need some hints regarding updating to 3.7.1:right now I have some jrxml-files which was created using IReports 3.0.0. Do I have to recreate all the jrxml files using IReports 3.7.1, in order for these to be compilable using the 3.7.1-library? Or is there any better way to do this?Thanks a lot Link to comment Share on other sites More sharing options...
ifcwlme Posted November 12, 2010 Author Share Posted November 12, 2010 Try to register the same TTF fonts in the target JVM. The problem will be solved by doing this. 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