Icon Font (FontAwesome) in Jasper Report missing

0

I want to add icons to my report so I used the icon font "FontAwesome".

I added it to Jaspersoft Studio and generated the icons with the unicode from the cheat sheet.

For using it, I exported the font in the Studio to jar file and added it to my project libraries.

When showing the generated report with JRViewer the icons appear and everything looks fine.

But when saving the report form JRViewer to PDF, the icons are all missing. 

Is there a way to export icon fonts to pdf or is this not possible?

Thanks in advance.

 

UPDATE: I found the error. It was the the pdf endcoding which was  CP1252, which does not support unicode. After changing to Identity-H it worked fine for me.

tobi.fr's picture
Joined: Jan 5 2018 - 1:04am
Last seen: 1 year 7 months ago

Hi Tobi

I 'm trying to add FontAwesome icons to my reports developed with Jaspersoft Studio. Can you explain me which are the steps to correctly import the library and to use the icons?

Thanks in advance 

samuele.vigano - 1 year 3 weeks ago

1 Answer:

0

Which version of JasperReports and Jaspersoft Studio are you using? Some earlier version has a bug.

Also, check if the fonts are available from your java program.

hozawa's picture
52392
Joined: Apr 24 2010 - 4:31pm
Last seen: 5 months 6 days ago
Feedback