jasperUser12 Posted October 6, 2014 Posted October 6, 2014 Hi,I'm trying to support as many languages as possible in my reports (we have clients worldwide) and, while fonts are being displayed correctly on my html, docx, xls, csv etc exports, the pdf output just shows blank characters where the font doesn't support the characters (particularly Chinese). I can get it to display Chinese characters if, for example, I import the Arial Unicode MS font but there's no bold, italic or bold-italic variations of that font so I can't use that. I've tried using the Google Noto fonts which would solve my problem but I can't figure out how to make the pdf exporter choose from multiple fonts to select the right character. Is there any capability within Jaspersoft Studio to do this? What I'm talking about is similar to the CSS font-family tag - i.e:{ font-family: "Times New Roman", Georgia, Serif;}[/code]I was reading about font locales but I want to have the capability of displaying multiple languages in a single report - not choosing the font to serve based on the user's location. (e.g. one of our clients uses Latin and Chinese characters in the same labels).Is there something simple that I'm missing? Is there a way to simulate the bold, italic and bold-italic fonts with Arial Unicode MS similar to how you would do it in Word?
jaspersoft123 Posted December 8, 2014 Posted December 8, 2014 1. download and use Arial Unicode font jar - https://community.jaspersoft.com/sites/default/files/files/Report24775-eastAsian.zip 2. add this jar in 2 places - a) webapps-jasperserver-WEBINF-lib (add here) b) in Ireport u need to add in classpath. (tools-options-classpath) 3.set font name as "Arial Unicode MS" and keep same property set in ur xml <font fontName="Arial Unicode MS" size="12" isBold="true" pdfFontName="Arial Unicode MS" pdfEncoding="Identity-H" isPdfEmbedded="true"/> 4. restart ur jasperserver. 5. restart ur ireport.
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