byron.ullauri Posted February 11, 2018 Share Posted February 11, 2018 I have a variable that checks the value of a column (currency name) and returns its currency sign through a series of ifs/else. When viewed in jaspersoftstudio, it shows an empty box in preview and when exporting.On the server, the preview shows the currency sign but when exporting to pdf, the empty box returns.I've tried:Copying and pasting the symbol itselfUsing the Unicode value and returning it as a stringUsing html codes like £ and setting the format option on textfield to htmlAny idea on how to fix this? Link to comment Share on other sites More sharing options...
hozawa Posted February 12, 2018 Share Posted February 12, 2018 The font you're using probably is missing the currently sign. Try setting up font extensions.https://community.jaspersoft.com/wiki/custom-font-font-extension Link to comment Share on other sites More sharing options...
byron.ullauri Posted February 12, 2018 Author Share Posted February 12, 2018 I did add the font using font extensions, though it is worth noting that the file ext for the font is .otf instead of .ttf Link to comment Share on other sites More sharing options...
hozawa Posted February 13, 2018 Share Posted February 13, 2018 I think JasperReports only supports .ttf. I've also tried some other extensions and wasn't successful. Link to comment Share on other sites More sharing options...
Solution byron.ullauri Posted February 13, 2018 Author Solution Share Posted February 13, 2018 Yes, this seems to be the case. Couldn't find a .ttf version of the font I'm using so I tried looking up if there was a way to convert .otf to .tff, managed to do it but still no dice on getting currency symbols to show up. My solution was to change the font being used for fields that had the currency signs. 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