0

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

Alex K
  • 22,315
  • 19
  • 108
  • 236
Vy Do
  • 46,709
  • 59
  • 215
  • 313

2 Answers2

2

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.

dada67
  • 4,723
  • 17
  • 19
0

Use DejaVu Sans font.

enter image description here

See https://community.jaspersoft.com/questions/1012491/pdf-encoding-not-printing-characters-export

But I still want font Arial or Time News Roman font with Unicode UTF-8 display correctly. I still wait for more solution.

Vy Do
  • 46,709
  • 59
  • 215
  • 313