ktrinad Posted August 31, 2006 Share Posted August 31, 2006 By: Si Keen - swjkeen How to display Arabic text? 2003-09-27 04:07 I am reporting against an Oracle DB that holds some fields in Arabic. When I try to create the PDF report, having not chosen a specific Arabic font or codepage, the column containing the Arabic text is blank. However, having stepped through my Java application with a debugger, I can see that the Arabic has been fetched and it seems to be well formed. I am assuming that I just have to correct the display of this data. Can anyone give me advice as to what font and codepage to use, any other configuration, etc? By: Giulio Toffoli - gt78 RE: How to display Arabic text? 2003-09-29 06:13 Try to increase fields height. Giulio By: Hani Naguib - haninaguib RE: How to display Arabic text? 2003-10-16 14:26 Jasper Reports uses iText to generate pdf. IText does not have proper support for Arabic. To display Arabic I have had to use embed fonts (since the default fonts dont have the arabic characters). Unfortunately even when you have the correct font, the arabic is displayed in unconnected and inverted form. I am just finishing modifications to iText to get it to perform these tasks. If you are interrest (still beta) email me at hani@kylietech.com and I will send more details. By: Hani Naguib - haninaguib RE: How to display Arabic text? 2003-10-16 16:07 Ups, I take that back iText does have support for Arabic. You still need to embedded fonts, but it is capable of dealing with arabic characters (connecting etc..). I have not had time to see how this is achieved and why iReport and/or Jasper Reports does not seem to use this capability. Link to comment Share on other sites More sharing options...
satishmhiremath Posted October 6, 2016 Share Posted October 6, 2016 After all workarounds, i am able to fix this issue in Jasper ireport as follows In Text Properties : Font Name : Arial Pdf Font Name : ../arial.ttf Pdf Embedded : true Pdf Encoding : Identity-H ------------------------------------------------------- In your Project META-INF folder Create and Add reports folder containing arial.ttf files and font.xml Outside META-INF folder, add jasper-extensions.properties file So finally, jasper-extensions.properties --- Uses --- fonts.xml --- Uses --- true type font files jasper-extensions.properties file --> fonts.xml ---> arial.ttf Regards, Satish M Hiremath Bangalore, Karnataka, India satishmhiremath@gmail.com 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