How to fix Unicode font error in JasperReport 6.0.20?

Viewed 43

How to fix Unicode font error in JasperReport 6.0.20? It is Vietnamese (UTF-8). I usually use Time News Roman, Arial font.

enter image description here

2 Answers

You need to register the fonts in Jaspersoft Studio under Preferences/Jaspersoft Studio/Fonts with the PDF embedding flag checked and Identity-H as PDF encoding.

Jaspersoft Studio font

If you want to generate reports in an application that uses the JasperReports library, you'll have to export the fonts as jars and include them in your application's classpath.

You should also check that the license under which you use the fonts allows you to embed them in generated documents.

Related