0

I'm using Jasperreports to generate PDFs reports and I've run into a problem when trying to print greek symbols.

I have a font extension in the classpath with an "Arial" TTF font. That font should be used in the report as baseStyle (how can I verify?). When I generate a PDF containing alpha and beta (α,β) locally on my development machine (Mac) it all works nicely.

When I try the same in a production environment (Ubuntu), the symbols are not printed.

I've tried using net.sf.jasperreports.default.pdf.encoding=Cp1250 (also UTF-8) in a jasperreports.properties file. This changed the output to print ? instead of nothing.

I've looked at various other SO posts including Jasper Reports PDF doesn't export cyrillic values, but couldn't work out a solution. I thought I understood how Jasperreports fonts work, having added support for Chinese symbols with another font of the same fontextension, but I'm now back to square one. In particular the difference between the Mac dev environment and the deployment environment is concerning.

Could it be that Jasperreports favours system fonts over font extensions, i.e. picks "Arial" of the system rather than the font extension?

Thomas
  • 1,119
  • 9
  • 24

0 Answers0