goyal_1985 Posted September 9, 2011 Share Posted September 9, 2011 Hi, I have a report which has Arabic text. some of which is arabic. Using iReport 3.0.0, the non-italicized arabic text displays correctly with iReport font as "Sans Serif" and PDF font as arial and PDF-Encoding as "Unicode with Horizontal Writing", But when I change it to italics, the text is not displayed. (For italic text I tried with both arial.ttf and Ariali.ttf).Using the latest iReport 4.0.2 also, I am facing the same problem. Here, I am using the PDF font as Helvetica-Oblique and encoding as CP1252, however, for non-italicized, it displayes the text, for italic text, it does not.I tried with the "Fonts" and "unicode" demo, but whenever I made the text italic, it stops to be displayed.Please help. Link to comment Share on other sites More sharing options...
szaharia Posted September 9, 2011 Share Posted September 9, 2011 Hi,Try to use a dedicated TTF for Arabic text. Arial seems unable to render italicized Arabic chars.HTH,sanda Link to comment Share on other sites More sharing options...
goyal_1985 Posted September 13, 2011 Author Share Posted September 13, 2011 Hi Sanda, Thanks for replying, However, I have tried using the arabic fonts also. But using them, I am not even able to print the normal text. I am using arabic unicode fonts with pdf encoding as Unicode with Horizontal Writing. Could you please suggest some other solution? Thanks,Dishank Link to comment Share on other sites More sharing options...
szaharia Posted September 14, 2011 Share Posted September 14, 2011 Hi Dishank,Try with pdfEncoding="Identity-H" and a dedicated TTF file, such as artro.ttf, or, recommended, an open source true type font.HTH,sanda 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 : ../arialbd.ttf (ARIAL BOLD) Pdf Embedded : true Pdf Encoding : Identity-H ------------------------------------------------------- In your Project META-INF folder Create and Add reports folder containing arialbd.ttf(BOLD) files and fonts.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